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

This commit is contained in:
Jacky Zhao
2024-01-29 00:56:12 -08:00
parent f68872c09f
commit 76be137283
3 changed files with 68 additions and 97 deletions

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)
}