Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: do not add empty notebook when migrating

thecodrr555ffd24f781
diff --git a/packages/core/migrations.js b/packages/core/migrations.js
index 7580df14e..c5e411af0 100644
--- a/packages/core/migrations.js
+++ b/packages/core/migrations.js
@@ -34,7 +34,7 @@ export const migrations = {
// note.notebook -> note.notebooks
const notebook = item.notebook;
delete item.notebook;
- if (notebook) {
+ if (notebook && notebook.id && notebook.topic) {
notebook.topics = [notebook.topics];
delete notebook.topic;
item.notebooks = [notebook];