File tree Expand file tree Collapse file tree 5 files changed +1008
-236
lines changed
app/(app)/team/[team_slug]/[project_slug]/assets Expand file tree Collapse file tree 5 files changed +1008
-236
lines changed Original file line number Diff line number Diff 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 } ) }
You can’t perform that action at this time.
0 commit comments