From 542ec0c8eeba4c39736474a946228c5894610a29 Mon Sep 17 00:00:00 2001 From: Valentin Porcellini Date: Mon, 24 Jun 2024 14:21:03 +0200 Subject: [PATCH] Reverts using id from map as it causes a bug --- src/components/NavBar/DrawerItem/DrawerItem.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/NavBar/DrawerItem/DrawerItem.jsx b/src/components/NavBar/DrawerItem/DrawerItem.jsx index 842bc5b10..9bd7eece7 100644 --- a/src/components/NavBar/DrawerItem/DrawerItem.jsx +++ b/src/components/NavBar/DrawerItem/DrawerItem.jsx @@ -128,7 +128,8 @@ const DrawerItem = ({ toolsList }) => { } /> - {toolsList.map((item, index) => { + {toolsList.map((item) => { + let index = item.id - 1; if (item.path) { return (