Skip to content

Commit

Permalink
Hide navigation screen in site editor (#49043)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored and Mamaduka committed Mar 14, 2023
1 parent 8913e6d commit 7e50c76
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export default function SidebarNavigationScreenMain() {
};
} );

const showNavigationScreen = process.env.IS_GUTENBERG_PLUGIN
? navigationMenus?.length > 0
: false;
return (
<SidebarNavigationScreen
isRoot
Expand All @@ -36,7 +39,7 @@ export default function SidebarNavigationScreenMain() {
) }
content={
<ItemGroup>
{ !! navigationMenus && navigationMenus.length > 0 && (
{ showNavigationScreen && (
<NavigatorButton
as={ SidebarNavigationItem }
path="/navigation"
Expand Down

0 comments on commit 7e50c76

Please sign in to comment.