diff --git a/src/common/layout/optima/nav/DesktopNav.tsx b/src/common/layout/optima/nav/DesktopNav.tsx index f4efe2f83..73b36e545 100644 --- a/src/common/layout/optima/nav/DesktopNav.tsx +++ b/src/common/layout/optima/nav/DesktopNav.tsx @@ -260,6 +260,9 @@ export function DesktopNav(props: { component: React.ElementType, currentApp?: N // attract the attention to the models configuration when no LLMs are available (a bit hardcoded here) const isAttractive = noLLMs && item.overlayId === 'models'; + // skip the models configuration, unless it is required + if (item.overlayId === 'models' && !isAttractive) return null; + return ( ); - }); + }).filter(component => !!component); // filter out null components }, [noLLMs, showModels, showPreferences]);