fix(nui): Add missing key to resource map

This commit is contained in:
Luke committed 2022-01-01 13:21:52 +01:00
1 parent 2fc0aa4de9
commit 4d93b9256a
1 file changed
+2 -2
+2 -2
View File
@@ -31,8 +31,8 @@ const LeftBar: React.FC = () => {
return ( return (
<Box p="1.2vh" fontSize="1.5vh" float="left" maxWidth="13vh"> <Box p="1.2vh" fontSize="1.5vh" float="left" maxWidth="13vh">
<VStack align="left"> <VStack align="left">
{initData.resources.map((resource) => ( {initData.resources.map((resource, index) => (
<Link to={resource}> <Link to={resource} key={`${resource}-{index}`}>
<Box _hover={{ transform: 'scale(1.1)' }}>{resource}</Box> <Box _hover={{ transform: 'scale(1.1)' }}>{resource}</Box>
</Link> </Link>
))} ))}