Skip to content

Commit d741f57

Browse files
Merge pull request #1116 from Arnei/navbar-unique-key-error
Fix unique key error in NavBar
2 parents cd7211b + bb4a311 commit d741f57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/NavBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ const NavBar = ({
9292
<MainNav isOpen={displayNavigation} toggleMenu={toggleNavigation} />
9393

9494
<nav aria-label={navAriaLabel && t(navAriaLabel)}>
95-
{links.map((link) =>
95+
{links.map((link, index) =>
9696
{return (hasAccess(link.accessRole, user) && (
9797
<Link
98+
key={index}
9899
to={link.path}
99100
className={cn({ active: location.pathname === link.path })}
100101
onClick={() => {

0 commit comments

Comments
 (0)