mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-18 11:13:40 +00:00
fix: attempt to merge cached folder state between builds (closes #691)
This commit is contained in:
parent
f68872c09f
commit
76be137283
3 changed files with 68 additions and 97 deletions
quartz/components
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue