ywana-core8 0.0.818 → 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 +4 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -12
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentEditor.js +4 -10
package/package.json
CHANGED
@@ -453,7 +453,8 @@ 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
|
-
|
456
|
+
delete next.actions
|
457
|
+
setForm(structuredClone(next))
|
457
458
|
}
|
458
459
|
}
|
459
460
|
|
@@ -487,15 +488,8 @@ const TableEditor = (props) => {
|
|
487
488
|
const [groupBy, setGroupBy] = useState(props.groupBy)
|
488
489
|
|
489
490
|
function change(id, value) {
|
490
|
-
const nextData = data
|
491
|
-
|
492
|
-
delete row.actions
|
493
|
-
const clonedRow = structuredClone(row)
|
494
|
-
return Object.assign({}, clonedRow, { [id]: value })
|
495
|
-
} else {
|
496
|
-
return row
|
497
|
-
}
|
498
|
-
})
|
491
|
+
const nextData = structuredClone(data)
|
492
|
+
nextData[id] = value
|
499
493
|
if (onChange) onChange(field.id, nextData)
|
500
494
|
}
|
501
495
|
|