mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-11-28 08:19:48 +01:00
Fixing Copilot suggestion
This commit is contained in:
parent
50b6c217c6
commit
6b05c6ba64
@ -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<string, boolean>(
|
||||
serializedExplorerState.map((entry: FolderState) => [entry.path, entry.collapsed]),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user