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: do not show success toast if notebook failed to create (#2307)
Muhammad Ali6f5a44cd117f
diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsxindex ea2909958..c2e8177b7 100644--- a/apps/web/src/common/dialog-controller.tsx+++ b/apps/web/src/common/dialog-controller.tsx@@ -94,7 +94,9 @@ export function showAddNotebookDialog() {isOpen={true}onDone={async (nb: Record<string, unknown>) => {// add the notebook to db- await db.notebooks?.add({ ...nb });+ const notebook = await db.notebooks?.add({ ...nb });+ if (!notebook) return perform(false);+notebookStore.refresh();showToast("success", "Notebook added successfully!");