react-crud-mobile 1.3.277 → 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.
@@ -2302,9 +2302,9 @@ function UIElement(props) {
2302
2302
  var next = reactCrudUtils.Utils.nvl(main.parent, null);
2303
2303
  main.dialog = next;
2304
2304
  scope.currentDialog = next;
2305
- if (current != null && current.scope) {
2305
+ if (current) {
2306
2306
  var close = current.close;
2307
- current.scope.update();
2307
+ if (current.update) current.update();
2308
2308
  if (close) {
2309
2309
  if (close != null && close.debug) console.log('Fechando');
2310
2310
  current.scope.call('close', {
@@ -2312,8 +2312,8 @@ function UIElement(props) {
2312
2312
  });
2313
2313
  }
2314
2314
  }
2315
- if (next != null && next.scope) {
2316
- next.scope.update();
2315
+ if (next != null && next.update) {
2316
+ next.update();
2317
2317
  }
2318
2318
  };
2319
2319
  return /*#__PURE__*/jsxRuntime.jsx(CrudContext.Provider, {