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