Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Also deduplicate the list of menus
  • Loading branch information
scruffian committed Jul 17, 2023
commit ec1d0f7d48554c744508981931531c72f17eeb1c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import TemplatePartNavigationMenuListItem from './template-part-navigation-menu-
export default function TemplatePartNavigationMenuList( { menus } ) {
return (
<ItemGroup className="edit-site-sidebar-navigation-screen-template-part-navigation-menu-list">
{ menus.map( ( menuId ) => (
{ [ ...new Set( menus ) ].map( ( menuId, index ) => (
<TemplatePartNavigationMenuListItem
key={ menuId }
key={ index }
id={ menuId }
/>
) ) }
Expand Down