fix: minor fixes with migration

This commit is contained in:
thecodrr
2020-12-08 11:58:45 +05:00
parent 6746df2b7c
commit acd548fd38
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ export const migrations = {
const notebook = item.notebook;
delete item.notebook;
if (notebook && notebook.id && notebook.topic) {
notebook.topics = [notebook.topics];
notebook.topics = [notebook.topic];
delete notebook.topic;
item.notebooks = [notebook];
}