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.
@@ -2293,9 +2293,9 @@ function UIElement(props) {
2293
2293
  var next = Utils.nvl(main.parent, null);
2294
2294
  main.dialog = next;
2295
2295
  scope.currentDialog = next;
2296
- if (current != null && current.scope) {
2296
+ if (current) {
2297
2297
  var close = current.close;
2298
- current.scope.update();
2298
+ if (current.update) current.update();
2299
2299
  if (close) {
2300
2300
  if (close != null && close.debug) console.log('Fechando');
2301
2301
  current.scope.call('close', {
@@ -2303,8 +2303,8 @@ function UIElement(props) {
2303
2303
  });
2304
2304
  }
2305
2305
  }
2306
- if (next != null && next.scope) {
2307
- next.scope.update();
2306
+ if (next != null && next.update) {
2307
+ next.update();
2308
2308
  }
2309
2309
  };
2310
2310
  return /*#__PURE__*/jsx(CrudContext.Provider, {