fix(explorer): fix incorrect recursive case for folder rendering
This commit is contained in:
parent
e26658f4ed
commit
da1b6b37fe
2 changed files with 40 additions and 3 deletions
|
@ -134,9 +134,9 @@ function createFolderNode(
|
|||
}
|
||||
|
||||
for (const child of node.children) {
|
||||
const childNode = child.data
|
||||
? createFileNode(currentSlug, child)
|
||||
: createFolderNode(currentSlug, child, opts)
|
||||
const childNode = child.isFolder
|
||||
? createFolderNode(currentSlug, child, opts)
|
||||
: createFileNode(currentSlug, child)
|
||||
ul.appendChild(childNode)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue