Skip to content

Commit

Permalink
ensure nav items have key
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Aug 20, 2023
1 parent 13b3b1e commit cea28a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/generator/layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ export function Sidebar() {
<Aside>
<Nav>
{sectionLinks.map(({ label, section }) => (
<div style={{display: 'flex', gap: 8}}>
<div key={section} style={{ display: 'flex', gap: 8 }}>
<IconButton type="button">
<MdDragIndicator />
</IconButton>
<StyledLink
key={section}
href={`/generator?section=${section}`}
$active={section === currSection}
>
Expand Down

0 comments on commit cea28a0

Please sign in to comment.