react-crud-mobile 1.3.249 → 1.3.250

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.
@@ -1373,9 +1373,7 @@ function UIModal(_ref) {
1373
1373
  modalVisible = _useState[0],
1374
1374
  setModalVisible = _useState[1];
1375
1375
  var _useState2 = useState(0),
1376
- index = _useState2[0],
1377
- setIndex = _useState2[1];
1378
- if (!scope.isType('dialog') && !(scope != null && scope.currentDialog)) return /*#__PURE__*/jsx(Fragment, {});
1376
+ index = _useState2[0];
1379
1377
  var dialog = scope == null ? void 0 : scope.currentDialog;
1380
1378
  var label = scope.getLabel();
1381
1379
  var theme = scope.getTheme();
@@ -1397,11 +1395,9 @@ function UIModal(_ref) {
1397
1395
  modalVisible = vis;
1398
1396
  setModalVisible(modalVisible);
1399
1397
  };
1400
- scope.update = function () {
1401
- setIndex(++index);
1402
- };
1403
1398
  var curr = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
1404
1399
  var main = ViewUtils.getCrud('view');
1400
+ if (!scope.isType('dialog') && !(scope != null && scope.currentDialog)) return /*#__PURE__*/jsx(Fragment, {});
1405
1401
  if (!curr) {
1406
1402
  return /*#__PURE__*/jsx(Fragment, {});
1407
1403
  }