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
revert: no need to make copies of note.notebooks
thecodrrafe0f2c98418
diff --git a/packages/core/models/topic.js b/packages/core/models/topic.jsindex 0af608014..1bb623b4a 100644--- a/packages/core/models/topic.js+++ b/packages/core/models/topic.js@@ -27,7 +27,6 @@ export default class Topic {topic.notes.push(noteId);let array = note.notebooks || [];- array = array.slice();const notebookIndex = array.findIndex((nb) => nb.id === this._notebookId);if (notebookIndex === -1) {let notebook = {};@@ -58,7 +57,7 @@ export default class Topic {let index = topic.notes.indexOf(noteId);topic.notes.splice(index, 1);- let array = note.notebooks.slice();+ let array = note.notebooks;const notebookIndex = array.findIndex((nb) => nb.id === this._notebookId);if (notebookIndex === -1) return;