UI/components/sidebar: fix missing top-level keys
This commit is contained in:
@@ -69,7 +69,12 @@ export const Sidebar = (props: RouteSectionProps) => {
|
|||||||
<div class="sidebar__body">
|
<div class="sidebar__body">
|
||||||
<For each={routes.filter((r) => !r.hidden && r.path != "/clans")}>
|
<For each={routes.filter((r) => !r.hidden && r.path != "/clans")}>
|
||||||
{(route: AppRoute) => (
|
{(route: AppRoute) => (
|
||||||
<Show when={route.children}>
|
<Show
|
||||||
|
when={route.children}
|
||||||
|
fallback={
|
||||||
|
<SidebarListItem href={route.path} title={route.label} />
|
||||||
|
}
|
||||||
|
>
|
||||||
{(children) => (
|
{(children) => (
|
||||||
<SidebarSection title={route.label}>
|
<SidebarSection title={route.label}>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user