Add react key for nav items
This commit is contained in:
committed by
Vishnu Ks
parent
c2aae6dbd5
commit
2412ec36f9
@@ -33,7 +33,7 @@ export default () => {
|
|||||||
</div>
|
</div>
|
||||||
{data.allCategoriesJson.edges.map(function(x, index) {
|
{data.allCategoriesJson.edges.map(function(x, index) {
|
||||||
return (
|
return (
|
||||||
<Nav.Item>
|
<Nav.Item key={index}>
|
||||||
<Nav.Link href={slugify(x.node.name)}>
|
<Nav.Link href={slugify(x.node.name)}>
|
||||||
{x.node.emoji} {x.node.name}
|
{x.node.emoji} {x.node.name}
|
||||||
</Nav.Link>
|
</Nav.Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user