Skip to content

Commit

Permalink
fix(nui): Add missing key to resource map
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Jan 1, 2022
1 parent 2fc0aa4 commit 4d93b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/NavBars/LeftBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const LeftBar: React.FC = () => {
return (
<Box p="1.2vh" fontSize="1.5vh" float="left" maxWidth="13vh">
<VStack align="left">
{initData.resources.map((resource) => (
<Link to={resource}>
{initData.resources.map((resource, index) => (
<Link to={resource} key={`${resource}-{index}`}>
<Box _hover={{ transform: 'scale(1.1)' }}>{resource}</Box>
</Link>
))}
Expand Down

0 comments on commit 4d93b92

Please sign in to comment.