Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit cdecebf

Browse files
committed
new rows fixed
1 parent b66b745 commit cdecebf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/reducers/DatabaseDispatch.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ export function databaseReducer(state: TableDataType, action: ActionType) {
101101
[MetadataColumns.FILE]: `[[${filename}|${action.filename}]]`,
102102
};
103103
// TODO add typing
104-
return update(state as any, {
105-
data: { $push: [row] },
104+
return update(state, {
105+
view: {
106+
rows: { $push: [row] },
107+
},
106108
});
107109
/**
108110
* Modify column label of its header.

0 commit comments

Comments
 (0)