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: crash when a created note is deleted
thecodrr28290603e89c
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.jsindex a805a1309..4ee917a19 100644--- a/apps/web/src/stores/editor-store.js+++ b/apps/web/src/stores/editor-store.js@@ -105,6 +105,11 @@ class EditorStore extends BaseStore {this.set((state) => (state.session.isSaving = true));this._saveFn()(this.get().session).then(async (id) => {+ const note = db.notes.note(id)?.data;+ if (!note) {+ noteStore.refresh();+ return;+ }/* eslint-disable */storeSync: {const session = this.get().session;@@ -127,7 +132,6 @@ class EditorStore extends BaseStore {}this.set((state) => {- const note = db.notes.note(id).data;state.session.id = id;state.session.title = note.title;state.session.isSaving = false;