Skip to content

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

fix: do not set empty notebook object on restore

thecodrrf82eba357513
diff --git a/packages/core/collections/trash.js b/packages/core/collections/trash.js
index fd4df3fbf..5b9be22b3 100644
--- a/packages/core/collections/trash.js
+++ b/packages/core/collections/trash.js
@@ -73,7 +73,7 @@ export default class Trash extends Collection {
!this._db.notebooks._collection.exists(id) ||
!this._db.notebooks.notebook(id).topics.has(topic)
) {
- notebook = {};
+ notebook = undefined;
}
// restore the note to the topic it was in before deletion