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: duplicate general topics in restored notebook
thecodrr9164310e8cfb
diff --git a/packages/core/collections/notebooks.js b/packages/core/collections/notebooks.jsindex 3de365cda..4da798922 100644--- a/packages/core/collections/notebooks.js+++ b/packages/core/collections/notebooks.js@@ -43,11 +43,15 @@ export default class Notebooks extends Collection {title: notebook.title,description: notebook.description,dateCreated: notebook.dateCreated,+ dateEdited: notebook.dateEdited,pinned: !!notebook.pinned,topics: notebook.topics || [],- totalNotes: 0,+ totalNotes: notebook.totalNotes || 0,};- if (!oldNotebook) {+ if (+ !oldNotebook &&+ notebook.topics.findIndex((topic) => topic.title === "General") <= -1+ ) {notebook.topics.splice(0, 0, "General");}