From 509590e400839993e5406b35f88fd97ec5125f4d Mon Sep 17 00:00:00 2001 From: sektordv Date: Mon, 14 Jun 2021 18:48:22 +0200 Subject: [PATCH] added homepage condition for channel select --- src/components/AppLayout/AppLayout.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index 7a9717637..0b7a162d7 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -137,6 +137,8 @@ const AppLayout: React.FC = ({ children }) => { setChannel } = useAppChannel(false); + const isHomepage = location.pathname === "/"; + const menuStructure = createMenuStructure(intl); const configurationMenu = createConfigurationMenu(intl); const userPermissions = user?.userPermissions || []; @@ -216,7 +218,7 @@ const AppLayout: React.FC = ({ children }) => { .includes("mac")} onClick={() => setNavigatorVisibility(true)} /> - {channel && ( + {channel && isHomepage && (