From 7e50c7646f2a0abbbc1c585560be49d64e1ed38d Mon Sep 17 00:00:00 2001 From: Nik Tsekouras Date: Tue, 14 Mar 2023 07:19:49 +0200 Subject: [PATCH] Hide navigation screen in site editor (#49043) --- .../src/components/sidebar-navigation-screen-main/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/sidebar-navigation-screen-main/index.js b/packages/edit-site/src/components/sidebar-navigation-screen-main/index.js index 26b01999262d3..151cb17a2ae2a 100644 --- a/packages/edit-site/src/components/sidebar-navigation-screen-main/index.js +++ b/packages/edit-site/src/components/sidebar-navigation-screen-main/index.js @@ -27,6 +27,9 @@ export default function SidebarNavigationScreenMain() { }; } ); + const showNavigationScreen = process.env.IS_GUTENBERG_PLUGIN + ? navigationMenus?.length > 0 + : false; return ( - { !! navigationMenus && navigationMenus.length > 0 && ( + { showNavigationScreen && (