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 Mar 14, 2023
1 parent 1753c04 commit 73162de
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export default function SidebarNavigationScreenMain() {
return navigationMenus?.length > 0;
} );

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

0 comments on commit 73162de

Please sign in to comment.