Skip to content

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

web: fix new sessions can't be opened after app refresh

Abdullah Atta6512ace33bea
diff --git a/apps/web/src/stores/editor-store.ts b/apps/web/src/stores/editor-store.ts
index 08751740a..014c4b237 100644
--- a/apps/web/src/stores/editor-store.ts
+++ b/apps/web/src/stores/editor-store.ts
@@ -653,7 +653,7 @@ const [useEditorStore] = createPersistedStore(EditorStore, {
sessions.push({
id: session.id,
type: isLockedSession(session) ? "locked" : session.type,
- needsHydration: true,
+ needsHydration: session.type === "new" ? false : true,
preview: session.preview,
pinned: session.pinned,
note: