added homepage condition for channel select
This commit is contained in:
parent
4f39e75f2d
commit
509590e400
1 changed files with 3 additions and 1 deletions
|
@ -137,6 +137,8 @@ const AppLayout: React.FC<AppLayoutProps> = ({ 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<AppLayoutProps> = ({ children }) => {
|
|||
.includes("mac")}
|
||||
onClick={() => setNavigatorVisibility(true)}
|
||||
/>
|
||||
{channel && (
|
||||
{channel && isHomepage && (
|
||||
<AppChannelSelect
|
||||
channels={availableChannels}
|
||||
disabled={!isPickerActive}
|
||||
|
|
Loading…
Reference in a new issue