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
web: fix issue where notes directly in a notebook could not be unlinked (#2466)
Muhammad Ali2d07d7905791
diff --git a/packages/core/collections/notes.js b/packages/core/collections/notes.jsindex c04fdf66c..07df73bc4 100644--- a/packages/core/collections/notes.js+++ b/packages/core/collections/notes.js@@ -347,11 +347,12 @@ export default class Notes extends Collection {for (const noteId of noteIds) {const note = this.note(noteId);- if (!note || note.deleted || !note.notebooks) {+ if (!note || note.deleted) {continue;}if (topicId) {+ if (!note.notebooks) continue;const { notebooks } = note;const notebook = findById(notebooks, notebookId);