fix: database migration (#2887)

This commit is contained in:
3720
2023-06-28 13:44:11 +08:00
committed by GitHub
parent 3f12e4925f
commit da57fbeadd

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 => {