Skip to content

Commit

Permalink
fix: add unique key identifier to navbar children
Browse files Browse the repository at this point in the history
  • Loading branch information
NoeTerrier committed Feb 26, 2024
1 parent 7baac1e commit 07ce563
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/components/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ function DropdownMenuItem({

subLinks.forEach((subLink) => {
content.push(
<Link className={styles.menuItem} href={link.href + subLink.href}>
<Link
className={styles.menuItem}
href={link.href + subLink.href}
key={subLink.title}
>
{subLink.title}
</Link>
);
Expand Down

0 comments on commit 07ce563

Please sign in to comment.