Skip to content

Commit

Permalink
fix: added key for nav item
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jun 23, 2020
1 parent e0c94b8 commit 84ea900
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/NavigationItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ const NavigationItems = ({
{showGroup && (
<li className={cx(styles.navLink, styles.groupName)}>{group}</li>
)}
{pages.map((page) => (
{pages.map((page, index) => (
<NavItem
page={page}
depthLevel={depthLevel}
searchTerm={searchTerm}
filteredPageNames={filteredPageNames}
key={index}
/>
))}
</Fragment>
Expand Down Expand Up @@ -165,6 +166,9 @@ NavItem.propTypes = {
url: PropTypes.string,
children: PropTypes.array,
}),
filteredPageNames: PropTypes.array,
searchTerm: PropTypes.string,
depthLevel: PropTypes.number,
};

export default NavigationItems;

0 comments on commit 84ea900

Please sign in to comment.