Skip to content

Commit 687a4d3

Browse files
committed
[Chore] DirectoryListing error if not returning items
1 parent 51657e8 commit 687a4d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/DirectoryListing.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ function buildPageTree(parentPath: string, currentDepth: number): PageNode[] {
5555
}
5656
5757
const pageTree = buildPageTree(folder, baseDepth + 1);
58+
59+
if (pageTree.length === 0) {
60+
console.warn("DirectoryListing error")
61+
}
5862
---
5963

6064
<ul>

0 commit comments

Comments
 (0)