Added a key to the nav links on the sidebar to get rid of dom error when loaded web ui.

This commit is contained in:
SergeantPanda 2025-04-15 19:25:50 -05:00
parent 9b66dd1139
commit 29b10607ab

View file

@ -189,7 +189,12 @@ const Sidebar = ({ collapsed, toggleDrawer, drawerWidth, miniDrawerWidth }) => {
const isActive = location.pathname === item.path;
return (
<NavLink item={item} collapsed={collapsed} isActive={isActive} />
<NavLink
key={item.path}
item={item}
collapsed={collapsed}
isActive={isActive}
/>
);
})}
</Stack>