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.
- package/dist/react-crud-mobile.cjs.development.js +2 -6
- package/dist/react-crud-mobile.cjs.development.js.map +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js +1 -1
- package/dist/react-crud-mobile.cjs.production.min.js.map +1 -1
- package/dist/react-crud-mobile.esm.js +2 -6
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +2 -6
@@ -1382,9 +1382,7 @@ function UIModal(_ref) {
|
|
1382
1382
|
modalVisible = _useState[0],
|
1383
1383
|
setModalVisible = _useState[1];
|
1384
1384
|
var _useState2 = React.useState(0),
|
1385
|
-
index = _useState2[0]
|
1386
|
-
setIndex = _useState2[1];
|
1387
|
-
if (!scope.isType('dialog') && !(scope != null && scope.currentDialog)) return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1385
|
+
index = _useState2[0];
|
1388
1386
|
var dialog = scope == null ? void 0 : scope.currentDialog;
|
1389
1387
|
var label = scope.getLabel();
|
1390
1388
|
var theme = scope.getTheme();
|
@@ -1406,11 +1404,9 @@ function UIModal(_ref) {
|
|
1406
1404
|
modalVisible = vis;
|
1407
1405
|
setModalVisible(modalVisible);
|
1408
1406
|
};
|
1409
|
-
scope.update = function () {
|
1410
|
-
setIndex(++index);
|
1411
|
-
};
|
1412
1407
|
var curr = (_scope$currentDialog2 = scope.currentDialog) == null ? void 0 : _scope$currentDialog2.crud;
|
1413
1408
|
var main = reactCrudUtils.ViewUtils.getCrud('view');
|
1409
|
+
if (!scope.isType('dialog') && !(scope != null && scope.currentDialog)) return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1414
1410
|
if (!curr) {
|
1415
1411
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1416
1412
|
}
|