fix: attempt to merge cached folder state between builds (closes #691)

This commit is contained in:
Jacky Zhao committed 2024-01-29 00:56:20 -08:00
1 parent f68872c09f
commit 76be137283
3 files changed
+68 -97

No files matched your search

+1 -2
View File
@@ -69,9 +69,8 @@ export default ((userOpts?: Partial<Options>) => {
}
// Get all folders of tree. Initialize with collapsed state
const folders = fileTree.getFolderPaths(opts.folderDefaultState === "collapsed")
// Stringify to pass json tree as data attribute ([data-tree])
const folders = fileTree.getFolderPaths(opts.folderDefaultState === "collapsed")
jsonTree = JSON.stringify(folders)
}