Skip to content

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

fix: reload note on lock

thecodrrb4b5930d08b9
diff --git a/apps/web/src/stores/note-store.js b/apps/web/src/stores/note-store.js
index 7f5cdfda7..c1e321fb2 100644
--- a/apps/web/src/stores/note-store.js
+++ b/apps/web/src/stores/note-store.js
@@ -109,8 +109,9 @@ class NoteStore extends BaseStore {
lock = async (id) => {
await Vault.lockNote(id);
- if (editorStore.get().session.id === id) editorStore.clearSession(true);
this.refresh();
+ if (editorStore.get().session.id === id)
+ await editorStore.openSession(id, true);
};
setColor = async (id, color) => {