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: editing notebook crashed the app
thecodrra3ea7c32bf5a
diff --git a/apps/web/src/common/dialogcontroller.js b/apps/web/src/common/dialogcontroller.jsindex 01c392b41..a728ea045 100644--- a/apps/web/src/common/dialogcontroller.js+++ b/apps/web/src/common/dialogcontroller.js@@ -50,10 +50,10 @@ export function showEditNotebookDialog(notebookId) {const topics = qclone(nb.topics);delete nb.topics;- let notebook = await db.notebooks.add(nb);+ let notebookId = await db.notebooks.add(nb);// add or delete topics as required- const notebookTopics = db.notebooks.notebook(notebook.id).topics;+ const notebookTopics = db.notebooks.notebook(notebookId).topics;await notebookTopics.delete(...deletedTopics);await notebookTopics.add(...topics);