Fixing Copilot suggestion

This commit is contained in:
Emile Bangma 2025-06-19 22:55:30 +02:00 committed by GitHub
parent 50b6c217c6
commit 6b05c6ba64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]),