ywana-core8 0.0.817 → 0.0.819

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.cjs CHANGED
@@ -6084,7 +6084,7 @@ var CollectionAdder = function CollectionAdder(_ref12) {
6084
6084
 
6085
6085
  var next = Object.assign({}, form, (_Object$assign5 = {}, _Object$assign5[cellId] = cellValue, _Object$assign5));
6086
6086
  delete next.actions;
6087
- setForm(next);
6087
+ setForm(structuredClone(next));
6088
6088
  }
6089
6089
  }
6090
6090
 
@@ -6163,18 +6163,8 @@ var TableEditor$3 = function TableEditor(props) {
6163
6163
  setGroupBy = _useState5[1];
6164
6164
 
6165
6165
  function change(id, value) {
6166
- var nextData = data.map(function (row) {
6167
- if (row.id === id) {
6168
- var _Object$assign6;
6169
-
6170
- var next = Object.assign({}, row, (_Object$assign6 = {}, _Object$assign6[id] = value, _Object$assign6));
6171
- delete next.actions;
6172
- delete next.undefined;
6173
- return next;
6174
- } else {
6175
- return row;
6176
- }
6177
- });
6166
+ var nextData = structuredClone(data);
6167
+ nextData[id] = value;
6178
6168
  if (onChange) onChange(field.id, nextData);
6179
6169
  }
6180
6170