Skip to content

Commit 35da554

Browse files
committed
fix: don't show next steps if node has no children
1 parent fdd53cf commit 35da554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/pageGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function PageGrid({header}: Props) {
2020
}
2121

2222
const parentNode = nodeForPath(rootNode, path);
23-
if (!parentNode) {
23+
if (!parentNode || parentNode.children.length === 0) {
2424
return null;
2525
}
2626

0 commit comments

Comments
 (0)