fix: database migration (#2887)

This commit is contained in:
3720 authored and GitHub committed 2023-06-28 13:44:11 +08:00
1 parent 3f12e4925f
commit da57fbeadd
1 file changed
+3 -1
+3 -1
View File
@@ -39,7 +39,9 @@ function migrateDatabase(data: Y.Map<unknown>) {
update: (cell: { id: string; value: unknown }) => void update: (cell: { id: string; value: unknown }) => void
) => { ) => {
Object.values(cells).forEach(row => { Object.values(cells).forEach(row => {
update(row[id]); if (row[id] != null) {
update(row[id]);
}
}); });
}; };
const newColumns = columns.map(v => { const newColumns = columns.map(v => {