From 6b05c6ba64d849b492454693421aeda3a9e12dba Mon Sep 17 00:00:00 2001 From: Emile Bangma Date: Thu, 19 Jun 2025 22:55:30 +0200 Subject: [PATCH] Fixing Copilot suggestion --- quartz/components/scripts/explorer.inline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/components/scripts/explorer.inline.ts b/quartz/components/scripts/explorer.inline.ts index 4c6717458..f23f4df07 100644 --- a/quartz/components/scripts/explorer.inline.ts +++ b/quartz/components/scripts/explorer.inline.ts @@ -163,7 +163,7 @@ async function setupExplorer(currentSlug: FullSlug) { } // Get folder state from local storage - const storageTree = localStorage.getItem("fileTree") + const storageTree = sessionStorage.getItem("fileTree") const serializedExplorerState = storageTree && opts.useSavedState ? JSON.parse(storageTree) : [] const oldIndex = new Map( serializedExplorerState.map((entry: FolderState) => [entry.path, entry.collapsed]),