Skip to content

Commit 6e3f194

Browse files
committed
fix: backup data migration
1 parent 6e58a87 commit 6e3f194

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/store/utils/backup.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@ const performMetadataRestore = async (): Promise<
363363
return ok({ backupExists: false });
364364
}
365365

366+
// apply migrations
367+
if (backupRes.value.metadata.version < 47) {
368+
backup.comments = {};
369+
}
370+
366371
dispatch(updateMetadata({ ...expectedBackupShape, ...backup }));
367372
dispatch(backupSuccess({ category: EBackupCategories.metadata }));
368373

0 commit comments

Comments
 (0)