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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-crud-mobile",
3
- "version": "1.3.276",
3
+ "version": "1.3.278",
4
4
  "license": "MIT",
5
5
  "description": "Uma biblioteca de componentes para React Native",
6
6
  "main": "dist/index.js",
@@ -711,14 +711,13 @@ export default function UIElement(props: ElementType) {
711
711
  main.dialog = next;
712
712
  scope.currentDialog = next;
713
713
 
714
- if (main.dialog?.crud?.scope) {
715
- main.dialog?.crud.scope.update();
716
- }
714
+ let nextScope = next?.scope?.parent;
715
+ let currScope = current?.scope?.parent;
717
716
 
718
- if (current?.scope) {
717
+ if (currScope) {
719
718
  const close = current.close;
720
719
 
721
- current.scope.update();
720
+ currScope.update();
722
721
 
723
722
  if (close) {
724
723
  if (close?.debug) console.log('Fechando');
@@ -726,8 +725,8 @@ export default function UIElement(props: ElementType) {
726
725
  }
727
726
  }
728
727
 
729
- if (next.scope.update()) {
730
- next.scope.update();
728
+ if (nextScope) {
729
+ nextScope.update();
731
730
  }
732
731
  };
733
732