A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: do not set empty notebook object on restore
thecodrrf82eba357513
diff --git a/packages/core/collections/trash.js b/packages/core/collections/trash.jsindex 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