Fix empty nav menu (https://github.com/woocommerce/woocommerce-admin/pull/6366)
This commit is contained in:
parent
589283f652
commit
8371325ba6
|
@ -160,7 +160,7 @@ const Container = ( { menuItems } ) => {
|
|||
];
|
||||
|
||||
return [
|
||||
( !! primaryAndFavoriteItems ||
|
||||
( !! primaryAndFavoriteItems.length ||
|
||||
!! pluginItems ) && (
|
||||
<NavigationMenu
|
||||
key={ category.id }
|
||||
|
@ -188,7 +188,7 @@ const Container = ( { menuItems } ) => {
|
|||
)
|
||||
}
|
||||
>
|
||||
{ !! primaryAndFavoriteItems && (
|
||||
{ !! primaryAndFavoriteItems.length && (
|
||||
<NavigationGroup>
|
||||
{ primaryAndFavoriteItems.map(
|
||||
( item ) => (
|
||||
|
|
Loading…
Reference in New Issue