We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cbc861 commit 2435364Copy full SHA for 2435364
example/content/pages/index.md
@@ -0,0 +1,3 @@
1
+---
2
+title: Root
3
src/NestedCollection.js
@@ -68,9 +68,7 @@ const TreeNavLink = styled.div`
68
`;
69
70
const getNodeTitle = (node) => {
71
- const title = node.isRoot
72
- ? node.title
73
- : node.children.find((c) => !c.isDir && c.title)?.title || node.title;
+ const title = node.children.find((c) => !c.isDir && c.title)?.title || node.title;
74
return title;
75
};
76
0 commit comments