Skip to content

Commit

Permalink
refactor: improve syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mrholek committed Feb 4, 2025
1 parent 775ef42 commit f9c3612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AppSidebarNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const AppSidebarNav = ({ items }) => {
const Component = component
return (
<Component compact as="div" key={index} toggler={navLink(name, icon)} {...rest}>
{item.items?.map((item, index) =>
{items?.map((item, index) =>
item.items ? navGroup(item, index) : navItem(item, index, true),
)}
</Component>
Expand Down

0 comments on commit f9c3612

Please sign in to comment.