Skip to content

Commit

Permalink
Reverts using id from map as it causes a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sallaa committed Jun 24, 2024
1 parent bfbd213 commit 542ec0c
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 542ec0c

Please sign in to comment.