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) => {