@mcurros2/microm 1.1.360-0 → 1.1.362-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.js CHANGED
@@ -2802,7 +2802,7 @@ function $b0e88ae38b6db8e6$export$48bc9efe0fd9cb51(obj) {
2802
2802
  function $b0e88ae38b6db8e6$export$2f94c190036e1eba(source, mergeAndOverride) {
2803
2803
  const mergedValues = {};
2804
2804
  Object.entries(source ?? {}).forEach(([name, value])=>{
2805
- if ($b0e88ae38b6db8e6$export$96bdbc84526f3739(value)) mergedValues[name] = value;
2805
+ mergedValues[name] = value;
2806
2806
  });
2807
2807
  Object.entries(mergeAndOverride ?? {}).forEach(([name, value])=>{
2808
2808
  if ($b0e88ae38b6db8e6$export$96bdbc84526f3739(value) || !Object.hasOwnProperty.call(mergedValues, name)) mergedValues[name] = value;
@@ -6688,20 +6688,13 @@ const $feb3b896c48c1f2a$var$createParentKeysObject = (columnNames, values, entit
6688
6688
  };
6689
6689
  function $feb3b896c48c1f2a$export$63173dda48cd7d28(props) {
6690
6690
  const { formAPI: formAPI, columnNames: columnNames, entity: entity } = props;
6691
- const [parentKeys, setParentKeys] = (0, $b4te3$react.useState)($feb3b896c48c1f2a$var$createParentKeysObject(columnNames, formAPI.form.values, entity));
6692
- const previousParentKeys = (0, $b4te3$react.useRef)({});
6693
- (0, $b4te3$react.useEffect)(()=>{
6694
- const newParentKeys = $feb3b896c48c1f2a$var$createParentKeysObject(columnNames, formAPI.form.values, entity);
6695
- if ((0, $2cfmO.areValuesObjectsEqual)(previousParentKeys.current, newParentKeys)) return;
6696
- setParentKeys(newParentKeys);
6697
- previousParentKeys.current = (0, $2cfmO.copyValuesObject)(newParentKeys);
6698
- }, [
6699
- formAPI.form,
6700
- formAPI.form.values,
6701
- columnNames,
6702
- entity,
6703
- entity.parentKeys
6704
- ]);
6691
+ const [parentKeys, setParentKeys] = (0, $b4te3$react.useState)(()=>$feb3b896c48c1f2a$var$createParentKeysObject(columnNames, formAPI.form.values, entity));
6692
+ const newParentKeys = $feb3b896c48c1f2a$var$createParentKeysObject(columnNames, formAPI.form.values, entity);
6693
+ if (!(0, $2cfmO.areValuesObjectsEqual)(parentKeys, newParentKeys)) {
6694
+ const copiedParentKeys = (0, $2cfmO.copyValuesObject)(newParentKeys);
6695
+ setParentKeys(copiedParentKeys);
6696
+ return copiedParentKeys;
6697
+ }
6705
6698
  return parentKeys;
6706
6699
  }
6707
6700