UI/components/sidebar: fix missing top-level keys

This commit is contained in:
Johannes Kirschbauer
2024-11-22 14:36:11 +01:00
parent 2b4ce58df3
commit b969c51cd0

View File

@@ -69,7 +69,12 @@ export const Sidebar = (props: RouteSectionProps) => {
<div class="sidebar__body">
<For each={routes.filter((r) => !r.hidden && r.path != "/clans")}>
{(route: AppRoute) => (
<Show when={route.children}>
<Show
when={route.children}
fallback={
<SidebarListItem href={route.path} title={route.label} />
}
>
{(children) => (
<SidebarSection title={route.label}>
<ul>