@mcurros2/microm 1.1.421-0 → 1.1.423-0
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/index.d.ts.map +1 -1
- package/dist/index.js +8 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7200,20 +7200,13 @@ const $feb3b896c48c1f2a$var$createParentKeysObject = (columnNames, values, entit
|
|
|
7200
7200
|
};
|
|
7201
7201
|
function $feb3b896c48c1f2a$export$63173dda48cd7d28(props) {
|
|
7202
7202
|
const { formAPI: formAPI, columnNames: columnNames, entity: entity } = props;
|
|
7203
|
-
const [parentKeys, setParentKeys] = (0, $b4te3$react.useState)(
|
|
7204
|
-
const
|
|
7205
|
-
(0, $
|
|
7206
|
-
const
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
}, [
|
|
7211
|
-
formAPI.form,
|
|
7212
|
-
formAPI.form.values,
|
|
7213
|
-
columnNames,
|
|
7214
|
-
entity,
|
|
7215
|
-
entity.parentKeys
|
|
7216
|
-
]);
|
|
7203
|
+
const [parentKeys, setParentKeys] = (0, $b4te3$react.useState)(()=>$feb3b896c48c1f2a$var$createParentKeysObject(columnNames, formAPI.form.values, entity));
|
|
7204
|
+
const newParentKeys = $feb3b896c48c1f2a$var$createParentKeysObject(columnNames, formAPI.form.values, entity);
|
|
7205
|
+
if (!(0, $2cfmO.areValuesObjectsEqual)(parentKeys, newParentKeys)) {
|
|
7206
|
+
const copiedParentKeys = (0, $2cfmO.copyValuesObject)(newParentKeys);
|
|
7207
|
+
setParentKeys(copiedParentKeys);
|
|
7208
|
+
return copiedParentKeys;
|
|
7209
|
+
}
|
|
7217
7210
|
return parentKeys;
|
|
7218
7211
|
}
|
|
7219
7212
|
|
|
@@ -35735,7 +35728,7 @@ function $7453d94b4131a5b6$export$5d8bfd620f16e3fd(props) {
|
|
|
35735
35728
|
children: /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.TextInput), {
|
|
35736
35729
|
size: size,
|
|
35737
35730
|
readOnly: true,
|
|
35738
|
-
value: lookupAPI.lookupResult?.description,
|
|
35731
|
+
value: lookupAPI.lookupResult?.description ?? '',
|
|
35739
35732
|
rightSection: lookupAPI.status.loading && /*#__PURE__*/ (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.Loader), {
|
|
35740
35733
|
size: "xs",
|
|
35741
35734
|
variant: "bars"
|