From 8a9e83fc6b61d94891b037ebf993909369fa1996 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Tue, 21 Apr 2020 11:46:22 +0500 Subject: [PATCH] fix: save opened note id in local storage --- apps/web/src/stores/editor-store.js | 3 +++ 1 file changed, 3 insertions(+) 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) => {