mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-18 14:34:23 +02:00
Prettier
This commit is contained in:
parent
40ca67c8c6
commit
ff9be50a56
@ -68,9 +68,7 @@ export default ((userOpts?: Partial<Options>) => {
|
|||||||
|
|
||||||
// Get all folders of tree. Initialize with collapsed state
|
// Get all folders of tree. Initialize with collapsed state
|
||||||
// Stringify to pass json tree as data attribute ([data-tree])
|
// Stringify to pass json tree as data attribute ([data-tree])
|
||||||
const folders = fileTree.getFolderPaths(
|
const folders = fileTree.getFolderPaths(opts.folderDefaultState === "collapsed")
|
||||||
opts.folderDefaultState === "collapsed"
|
|
||||||
)
|
|
||||||
jsonTree = JSON.stringify(folders)
|
jsonTree = JSON.stringify(folders)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user