ywana-core8 0.0.816 → 0.0.818

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.816",
3
+ "version": "0.0.818",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -388,8 +388,9 @@ const CollectionEditor = (props) => {
388
388
  }
389
389
 
390
390
  function change(next) {
391
+ console.log("CHANGEA", next)
391
392
  setForm((prev) => {
392
- console.log("CHANGE", prev, next)
393
+ console.log("CHANGEB", prev, next)
393
394
  return next
394
395
  })
395
396
  }
@@ -453,7 +453,6 @@ const CollectionAdder = ({ item, onAdd }) => {
453
453
  function change(index, cellId, cellValue) {
454
454
  if (onAdd) {
455
455
  const next = Object.assign({}, form, { [cellId]: cellValue })
456
- delete next.actions
457
456
  setForm(next)
458
457
  }
459
458
  }
@@ -490,10 +489,9 @@ const TableEditor = (props) => {
490
489
  function change(id, value) {
491
490
  const nextData = data.map(row => {
492
491
  if (row.id === id) {
493
- const next = Object.assign({}, row, { [id]: value })
494
- delete next.actions
495
- delete next.undefined
496
- return next
492
+ delete row.actions
493
+ const clonedRow = structuredClone(row)
494
+ return Object.assign({}, clonedRow, { [id]: value })
497
495
  } else {
498
496
  return row
499
497
  }