Skip to content

Commit fe98c16

Browse files
committed
Add improvements to asset creation pages
1 parent 74b8c42 commit fe98c16

File tree

5 files changed

+1008
-236
lines changed

5 files changed

+1008
-236
lines changed

apps/dashboard/src/@/components/blocks/SidebarLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function RenderSidebarGroup(props: {
113113

114114
return (
115115
<SidebarMenu className="gap-1.5">
116-
{sidebarLinks.map((link) => {
116+
{sidebarLinks.map((link, idx) => {
117117
if ("href" in link) {
118118
return (
119119
<SidebarMenuItem key={link.href}>
@@ -137,14 +137,14 @@ function RenderSidebarGroup(props: {
137137
}
138138

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

143143
return (
144144
<RenderSidebarGroup
145145
sidebarLinks={link.links}
146146
groupName={link.group}
147-
key={link.group}
147+
key={link.group || `group-${idx}`}
148148
/>
149149
);
150150
})}

0 commit comments

Comments
 (0)