Skip to content

Commit

Permalink
Merge pull request #550 from AFP-Medialab/pre-master
Browse files Browse the repository at this point in the history
Fix nav bug
  • Loading branch information
Sallaa authored Jun 24, 2024
2 parents bfbd213 + 1271485 commit 1a367b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/NavBar/DrawerItem/DrawerItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ const DrawerItem = ({ toolsList }) => {
<DrawerItemContent index={0} drawContent={drawerItemsContent} />
}
/>
{toolsList.map((item, index) => {
{toolsList.map((item) => {
let index = item.id - 1;
if (item.path) {
return (
<Route path={item.path} key={index}>
Expand Down

0 comments on commit 1a367b7

Please sign in to comment.