Skip to content

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

fix: deleted notebooks should not be accessible

thecodrrbcdd572a4021
diff --git a/packages/core/collections/notebooks.js b/packages/core/collections/notebooks.js
index 4eb60f997..311f51c42 100644
--- a/packages/core/collections/notebooks.js
+++ b/packages/core/collections/notebooks.js
@@ -77,7 +77,7 @@ export default class Notebooks extends Collection {
*/
notebook(id) {
let notebook = id.type ? id : this._collection.getItem(id);
- if (!notebook) return;
+ if (!notebook || notebook.deleted) return;
return new Notebook(notebook, this._db);
}