react-crud-mobile 1.3.257 → 1.3.259
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 +7 -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 +7 -6
- package/dist/react-crud-mobile.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/elements/core/UIModal.tsx +5 -2
@@ -1378,12 +1378,12 @@ function UIModal(_ref) {
|
|
1378
1378
|
var _theme$styles, _main$dialog;
|
1379
1379
|
var scope = _ref.scope,
|
1380
1380
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
1381
|
-
var _useState = React.useState(
|
1382
|
-
|
1383
|
-
setModalVisible = _useState[1];
|
1384
|
-
var _useState2 = React.useState(0),
|
1385
|
-
index = _useState2[0];
|
1381
|
+
var _useState = React.useState(0),
|
1382
|
+
index = _useState[0];
|
1386
1383
|
var dialog = scope.currentDialog;
|
1384
|
+
var _useState2 = React.useState(!reactCrudUtils.Utils.isEmpty(dialog)),
|
1385
|
+
modalVisible = _useState2[0],
|
1386
|
+
setModalVisible = _useState2[1];
|
1387
1387
|
//v1
|
1388
1388
|
var label = scope.getLabel();
|
1389
1389
|
var theme = scope.getTheme();
|
@@ -1406,9 +1406,10 @@ function UIModal(_ref) {
|
|
1406
1406
|
};
|
1407
1407
|
var curr = dialog == null ? void 0 : dialog.crud;
|
1408
1408
|
var main = reactCrudUtils.ViewUtils.getCrud('view');
|
1409
|
-
if (!
|
1409
|
+
if (!dialog) {
|
1410
1410
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1411
1411
|
}
|
1412
|
+
if (dialog.debug) console.log(dialog);
|
1412
1413
|
if (curr.uuid !== ((_main$dialog = main.dialog) == null || (_main$dialog = _main$dialog.crud) == null ? void 0 : _main$dialog.uuid)) {
|
1413
1414
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {});
|
1414
1415
|
}
|