Skip to content

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

fix: save opened note id in local storage

thecodrr8a9e83fc6b61
diff --git a/apps/web/src/stores/editor-store.js b/apps/web/src/stores/editor-store.js
index c52341940..60bcdd952 100644
--- a/apps/web/src/stores/editor-store.js
+++ b/apps/web/src/stores/editor-store.js
@@ -71,6 +71,9 @@ class EditorStore extends BaseStore {
};
});
noteStore.setSelectedNote(note.id);
+
+ if (note.locked) return;
+ saveLastOpenedNote(note.id);
};
saveSession = (oldSession) => {