From cc676d2d33bd1a60814eb8684862fb55e67ba200 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 19 May 2025 20:17:44 -0700 Subject: [PATCH] if not signed in, cycle orgs triggers login --- .../modelSelection/platform/AssistantSelect.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gui/src/components/modelSelection/platform/AssistantSelect.tsx b/gui/src/components/modelSelection/platform/AssistantSelect.tsx index 6e3c80c49..4281221a5 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelect.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelect.tsx @@ -217,11 +217,13 @@ export default function AssistantSelect() { }, [currentOrg, selectedProfile]); const cycleOrgs = () => { + if (!session) { + void login(false); + return; + } + const orgIds = orgs.map((org) => org.id); if (orgIds.length < 2) { - if (!session) { - void login(false); - } return; } let nextId = orgIds[0];