From fa4c78c9c21fc3b2d9cc221b9194ee3786ee754a Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Mon, 16 Jun 2025 08:06:35 -0700 Subject: [PATCH] Remove duplicate models configuration --- src/common/layout/optima/nav/DesktopNav.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]);