This commit is contained in:
Jacky Zhao 2025-03-08 21:23:27 -08:00
parent 51790b3926
commit 0cacd48458

View File

@ -105,9 +105,8 @@ export class FileTrieNode<T extends FileTrieData = ContentDetails> {
const segments = [currentPath, node.slugSegment] const segments = [currentPath, node.slugSegment]
const fullPath = joinSegments(...segments) as FullSlug const fullPath = joinSegments(...segments) as FullSlug
const indexQualifiedPath = node.isFolder && node.depth > 0 ? const indexQualifiedPath =
joinSegments(fullPath, "index") as FullSlug : node.isFolder && node.depth > 0 ? (joinSegments(fullPath, "index") as FullSlug) : fullPath
fullPath
const result: [FullSlug, FileTrieNode<T>][] = [[indexQualifiedPath, node]] const result: [FullSlug, FileTrieNode<T>][] = [[indexQualifiedPath, node]]