fix: database migration (#2887)
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user