Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ storybook-static
.aider*

tsconfig.tsbuildinfo
.cursor
.cursor
6 changes: 3 additions & 3 deletions apps/dashboard/src/@/components/blocks/SidebarLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function RenderSidebarGroup(props: {

return (
<SidebarMenu className="gap-1.5">
{sidebarLinks.map((link) => {
{sidebarLinks.map((link, idx) => {
if ("href" in link) {
return (
<SidebarMenuItem key={link.href}>
Expand All @@ -137,14 +137,14 @@ function RenderSidebarGroup(props: {
}

if ("separator" in link) {
return <SidebarSeparator className="my-1" />;
return <SidebarSeparator className="my-1" key={`separator-${idx}`} />;
}

return (
<RenderSidebarGroup
sidebarLinks={link.links}
groupName={link.group}
key={link.group}
key={link.group || `group-${idx}`}
/>
);
})}
Expand Down
Loading
Loading