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
core: fix topic with notes not deleting
ammarahm-ed7f30fe6ff9d7
diff --git a/packages/core/models/topic.js b/packages/core/models/topic.jsindex c67d0c21d..32c868292 100644--- a/packages/core/models/topic.js+++ b/packages/core/models/topic.js@@ -56,9 +56,12 @@ export default class Topic {const noteIds = this._db.notes.topicReferences.get(this.id);if (!noteIds.length) return;- return this._db.notes.deleteFromNotebook(- this._notebookId,- this.id,+ return this._db.notes.removeFromNotebook(+ {+ topic: this.id,+ id: this._notebookId,+ rebuildCache: true+ },...noteIds);}