react-crud-mobile 1.3.265 → 1.3.266

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.
@@ -1371,9 +1371,6 @@ function UIModal(props) {
1371
1371
  index = _useState[0],
1372
1372
  setIndex = _useState[1];
1373
1373
  var dialog = owner.currentDialog;
1374
- var _useState2 = useState(!Utils.isEmpty(dialog)),
1375
- modalVisible = _useState2[0],
1376
- setModalVisible = _useState2[1];
1377
1374
  //v2
1378
1375
  var curr = dialog == null ? void 0 : dialog.crud;
1379
1376
  var main = ViewUtils.getCrud('view');
@@ -1384,9 +1381,7 @@ function UIModal(props) {
1384
1381
  setIndex(++index);
1385
1382
  };
1386
1383
  if (dialog.debug) console.log(dialog);
1387
- if (curr.uuid !== ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid)) {
1388
- return /*#__PURE__*/jsx(Fragment, {});
1389
- }
1384
+ var modalVisible = curr.uuid === ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid);
1390
1385
  var scope = dialog.scope;
1391
1386
  var label = scope.getLabel();
1392
1387
  var theme = scope.getTheme();
@@ -1405,10 +1400,6 @@ function UIModal(props) {
1405
1400
  event: {}
1406
1401
  });
1407
1402
  };
1408
- scope.toggleDialog = function (vis) {
1409
- modalVisible = vis;
1410
- setModalVisible(modalVisible);
1411
- };
1412
1403
  scope.put('scrollRef', scrollRef);
1413
1404
  var original = owner.original;
1414
1405
  ComponentUtils.setViewScope(scope);