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.
@@ -6076,7 +6076,7 @@ var CollectionAdder = function CollectionAdder(_ref12) {
6076
6076
 
6077
6077
  var next = Object.assign({}, form, (_Object$assign5 = {}, _Object$assign5[cellId] = cellValue, _Object$assign5));
6078
6078
  delete next.actions;
6079
- setForm(next);
6079
+ setForm(structuredClone(next));
6080
6080
  }
6081
6081
  }
6082
6082
 
@@ -6155,18 +6155,8 @@ var TableEditor$3 = function TableEditor(props) {
6155
6155
  setGroupBy = _useState5[1];
6156
6156
 
6157
6157
  function change(id, value) {
6158
- var nextData = data.map(function (row) {
6159
- if (row.id === id) {
6160
- var _Object$assign6;
6161
-
6162
- var next = Object.assign({}, row, (_Object$assign6 = {}, _Object$assign6[id] = value, _Object$assign6));
6163
- delete next.actions;
6164
- delete next.undefined;
6165
- return next;
6166
- } else {
6167
- return row;
6168
- }
6169
- });
6158
+ var nextData = structuredClone(data);
6159
+ nextData[id] = value;
6170
6160
  if (onChange) onChange(field.id, nextData);
6171
6161
  }
6172
6162