Skip to content

Commit

Permalink
frontend: Fix missing key
Browse files Browse the repository at this point in the history
  • Loading branch information
pschlan committed Aug 15, 2024
1 parent fb72b22 commit e0785e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/AppMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function AppMenu({ items, selectedId, indentSubItems, onListItemC
<List>
{category.text && <ListSubheader inset>{category.text}</ListSubheader>}
{category.items.filter(item => !!item).map((item, itemNo) =>
<>
<React.Fragment key={itemNo}>
<ListItem key={itemNo} selected={item.id===selectedId} button component={RouterLink} to={item.href} onClick={onListItemClick}>
<ListItemIcon title={item.text}>
{item.icon}
Expand All @@ -48,7 +48,7 @@ export default function AppMenu({ items, selectedId, indentSubItems, onListItemC
<ListItemText primary={<Typography noWrap>{subItem.text}</Typography>} />
</ListItem>)}
</List>}
</>)}
</React.Fragment>)}
</List>
</div>)}
</>;
Expand Down

0 comments on commit e0785e6

Please sign in to comment.