8000 fix: don't include __originalIndex__ in edit output · githubocto/flat-ui@e93f60a · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit e93f60a

Browse files
author
Amelia Wattenberger
committed
fix: don't include __originalIndex__ in edit output
1 parent d0c72bd commit e93f60a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/store.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ export const createGridStore = () =>
358358
const row = newData[rowIndexInFullDataset];
359359
if (!row) return;
360360
if (value === row[columnName]) return;
361-
const newRow = { ...row, [columnName]: value };
361+
let newRow = { ...row, [columnName]: value };
362+
delete newRow[originalRowIndexColumnName];
362363
newData[rowIndexInFullDataset] = newRow;
363364
draft.updatedData = newData;
364365
});

0 commit comments

Comments
 (0)
0