Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: crash when adding notebook

thecodrr897d3aaa3d41
diff --git a/apps/web/src/common/dialogcontroller.js b/apps/web/src/common/dialogcontroller.js
index bd682b666..57beb436d 100644
--- a/apps/web/src/common/dialogcontroller.js
+++ b/apps/web/src/common/dialogcontroller.js
@@ -76,7 +76,8 @@ export function showAddNotebookDialog() {
isOpen={true}
onDone={async (nb) => {
// add the notebook to db
- await notebookStore.add({ ...nb });
+ await db.notebooks.add({ ...nb });
+ notebookStore.refresh();
showToast("success", "Notebook added successfully!");
perform(true);