mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
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
|
||||
) => {
|
||||
Object.values(cells).forEach(row => {
|
||||
update(row[id]);
|
||||
if (row[id] != null) {
|
||||
update(row[id]);
|
||||
}
|
||||
});
|
||||
};
|
||||
const newColumns = columns.map(v => {
|
||||
|
||||
Reference in New Issue
Block a user