react-crud-mobile 1.3.276 → 1.3.278

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2297,19 +2297,17 @@ function UIElement(props) {
2297
2297
  scope.update();
2298
2298
  };
2299
2299
  scope.dialogHide = function (args) {
2300
- var _main$dialog;
2300
+ var _next$scope, _current$scope;
2301
2301
  var main = reactCrudUtils.ViewUtils.getCrud('view');
2302
2302
  var current = main.dialog;
2303
2303
  var next = reactCrudUtils.Utils.nvl(main.parent, null);
2304
2304
  main.dialog = next;
2305
2305
  scope.currentDialog = next;
2306
- if ((_main$dialog = main.dialog) != null && (_main$dialog = _main$dialog.crud) != null && _main$dialog.scope) {
2307
- var _main$dialog2;
2308
- (_main$dialog2 = main.dialog) == null || _main$dialog2.crud.scope.update();
2309
- }
2310
- if (current != null && current.scope) {
2306
+ var nextScope = next == null || (_next$scope = next.scope) == null ? void 0 : _next$scope.parent;
2307
+ var currScope = current == null || (_current$scope = current.scope) == null ? void 0 : _current$scope.parent;
2308
+ if (currScope) {
2311
2309
  var close = current.close;
2312
- current.scope.update();
2310
+ currScope.update();
2313
2311
  if (close) {
2314
2312
  if (close != null && close.debug) console.log('Fechando');
2315
2313
  current.scope.call('close', {
@@ -2317,8 +2315,8 @@ function UIElement(props) {
2317
2315
  });
2318
2316
  }
2319
2317
  }
2320
- if (next.scope.update()) {
2321
- next.scope.update();
2318
+ if (nextScope) {
2319
+ nextScope.update();
2322
2320
  }
2323
2321
  };
2324
2322
  return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {