From aca0e40fd9aabfe09cbf117aaafdf085c927c6bb Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 7 Mar 2024 12:08:30 +0500 Subject: [PATCH] web: fix new sessions can't be opened after app refresh --- apps/web/src/stores/editor-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: