remove variable index within mapping
All checks were successful
checks-impure / test (pull_request) Successful in 26s
checks / test (pull_request) Successful in 3m10s

This commit is contained in:
Arslan, Erdem
2024-01-24 22:19:46 +01:00
parent 22bcbf6819
commit c5c4ab7178

View File

@@ -92,7 +92,7 @@ export function Sidebar(props: SidebarProps) {
React.useEffect(() => {
if (entityData) {
menuEntityEntries = Array.isArray(entityData.data)
? entityData.data.map((entity, index) => ({
? entityData.data.map((entity) => ({
icon: <PersonIcon />,
label: entity.name,
to: `/client/${entity.name}`,