Skip to content

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

fix: creating a new note does not unselect the last one (#65)

thecodrrfa638e573412
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index eadb2348d..3b1a99ead 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -124,6 +124,7 @@ function editorStore(set, get) {
};
});
saveLastOpenedNote();
+ noteStore.getState().setSelectedNote(0);
},
setColor: function(color) {
setTagOrColor(get().session, "colors", color, "color", get().setSession);