react-crud-mobile 1.3.245 → 1.3.247

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.
@@ -1403,7 +1403,6 @@ function UIModal(_ref) {
1403
1403
  };
1404
1404
  var curr = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
1405
1405
  var main = ViewUtils.getCrud('view');
1406
- console.log(curr);
1407
1406
  if (!curr) {
1408
1407
  return /*#__PURE__*/jsx(Fragment, {});
1409
1408
  }
@@ -1815,17 +1814,18 @@ function UIElement(props) {
1815
1814
  var ctx = useContext(CrudContext);
1816
1815
  var theme = Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1817
1816
  var crud = Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
1818
- var scope = ScopeUtils.create(_extends({
1819
- crud: crud
1820
- }, props, {
1821
- theme: theme
1822
- }));
1823
- var _useState = useState(0),
1824
- index = _useState[0],
1825
- setIndex = _useState[1];
1826
- var _useState2 = useState(null),
1827
- error = _useState2[0],
1828
- setError = _useState2[1];
1817
+ var _useState = useState(ScopeUtils.create(_extends({
1818
+ crud: crud
1819
+ }, props, {
1820
+ theme: theme
1821
+ }))),
1822
+ scope = _useState[0];
1823
+ var _useState2 = useState(0),
1824
+ index = _useState2[0],
1825
+ setIndex = _useState2[1];
1826
+ var _useState3 = useState(null),
1827
+ error = _useState3[0],
1828
+ setError = _useState3[1];
1829
1829
  scope.compile(props);
1830
1830
  crud = scope.crud;
1831
1831
  var options = scope.getOptions();
@@ -2309,6 +2309,7 @@ function UIElement(props) {
2309
2309
  var parentScope = old.scope.parent;
2310
2310
  main.dialog = Utils.nvl(old.parent, null);
2311
2311
  scope.currentDialog = null;
2312
+ console.log(scope);
2312
2313
  if ((_main$dialog = main.dialog) != null && (_main$dialog = _main$dialog.crud) != null && _main$dialog.scope) {
2313
2314
  var _main$dialog2;
2314
2315
  (_main$dialog2 = main.dialog) == null || _main$dialog2.crud.scope.update();