react-crud-mobile 1.3.278 → 1.3.279

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.
@@ -2288,17 +2288,14 @@ function UIElement(props) {
2288
2288
  scope.update();
2289
2289
  };
2290
2290
  scope.dialogHide = function (args) {
2291
- var _next$scope, _current$scope;
2292
2291
  var main = ViewUtils.getCrud('view');
2293
2292
  var current = main.dialog;
2294
2293
  var next = Utils.nvl(main.parent, null);
2295
2294
  main.dialog = next;
2296
2295
  scope.currentDialog = next;
2297
- var nextScope = next == null || (_next$scope = next.scope) == null ? void 0 : _next$scope.parent;
2298
- var currScope = current == null || (_current$scope = current.scope) == null ? void 0 : _current$scope.parent;
2299
- if (currScope) {
2296
+ if (current) {
2300
2297
  var close = current.close;
2301
- currScope.update();
2298
+ if (current.update) current.update();
2302
2299
  if (close) {
2303
2300
  if (close != null && close.debug) console.log('Fechando');
2304
2301
  current.scope.call('close', {
@@ -2306,8 +2303,8 @@ function UIElement(props) {
2306
2303
  });
2307
2304
  }
2308
2305
  }
2309
- if (nextScope) {
2310
- nextScope.update();
2306
+ if (next != null && next.update) {
2307
+ next.update();
2311
2308
  }
2312
2309
  };
2313
2310
  return /*#__PURE__*/jsx(CrudContext.Provider, {