Add react key for nav items

This commit is contained in:
Vladimir Tasic
2020-10-19 19:56:57 +02:00
committed by Vishnu Ks
parent c2aae6dbd5
commit 2412ec36f9

View File

@@ -33,7 +33,7 @@ export default () => {
</div>
{data.allCategoriesJson.edges.map(function(x, index) {
return (
<Nav.Item>
<Nav.Item key={index}>
<Nav.Link href={slugify(x.node.name)}>
{x.node.emoji} {x.node.name}
</Nav.Link>