generated from Luis/nextjs-python-web-template
remove variable index within mapping
This commit is contained in:
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user