Skip to content

Commit 87dbaff

Browse files
committed
fix: ci failure
1 parent 0530278 commit 87dbaff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/overrides/SidebarSublist.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import { Icon, Badge } from "@astrojs/starlight/components";
3-
import { SidebarEntry } from "~/util/sidebar";
3+
import type { SidebarEntry } from "~/util/sidebar";
44
55
interface Props {
66
sublist: SidebarEntry[];
@@ -75,7 +75,7 @@ const restoreIndices = sublist.map((entry) =>
7575
<details
7676
open={
7777
flattenSidebar(entry.entries).some(
78-
(i: SidebarEntry) => i.isCurrent,
78+
(i) => i.type === "link" && i.isCurrent,
7979
) || !entry.collapsed
8080
}
8181
>

0 commit comments

Comments
 (0)