We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0530278 commit 87dbaffCopy full SHA for 87dbaff
1 file changed
src/components/overrides/SidebarSublist.astro
@@ -1,6 +1,6 @@
1
---
2
import { Icon, Badge } from "@astrojs/starlight/components";
3
-import { SidebarEntry } from "~/util/sidebar";
+import type { SidebarEntry } from "~/util/sidebar";
4
5
interface Props {
6
sublist: SidebarEntry[];
@@ -75,7 +75,7 @@ const restoreIndices = sublist.map((entry) =>
75
<details
76
open={
77
flattenSidebar(entry.entries).some(
78
- (i: SidebarEntry) => i.isCurrent,
+ (i) => i.type === "link" && i.isCurrent,
79
) || !entry.collapsed
80
}
81
>
0 commit comments