Skip to content

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

fix: notebook is not defined

thecodrr61822cde9452
diff --git a/packages/core/collections/notebooks.js b/packages/core/collections/notebooks.js
index 187bad7c1..5533b2e31 100644
--- a/packages/core/collections/notebooks.js
+++ b/packages/core/collections/notebooks.js
@@ -141,7 +141,7 @@ export default class Notebooks extends Collection {
if (!!this._db.notes.note(noteId)) topic.notes.push(noteId);
}
}
+ await this._collection.updateItem(notebook);
}
- await this._collection.updateItem(notebook);
}
}