From 84137531c5f5bc0adc0764576f4769e3cb456c76 Mon Sep 17 00:00:00 2001 From: arthur791004 Date: Thu, 28 Mar 2024 23:01:54 +0800 Subject: [PATCH] Jetpack Cloud: Avoid displaying the Global Sidebar (#89011) --- client/my-sites/navigation/index.jsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/my-sites/navigation/index.jsx b/client/my-sites/navigation/index.jsx index bbb62209df0124..d251f67ab2dda9 100644 --- a/client/my-sites/navigation/index.jsx +++ b/client/my-sites/navigation/index.jsx @@ -55,6 +55,10 @@ class MySitesNavigation extends Component { showManageSitesButton: false, showHiddenSites: false, }; + } else if ( this.props.isGlobalSidebarVisible ) { + return this.renderGlobalSidebar(); + } else if ( this.props.isGlobalSiteSidebarVisible ) { + return this.renderGlobalSiteSidebar(); } else { asyncSidebar = ; @@ -107,12 +111,6 @@ class MySitesNavigation extends Component { } render() { - if ( this.props.isGlobalSidebarVisible ) { - return this.renderGlobalSidebar(); - } - if ( this.props.isGlobalSiteSidebarVisible ) { - return this.renderGlobalSiteSidebar(); - } return this.renderSidebar(); } }