if not signed in, cycle orgs triggers login

This commit is contained in:
Dallin Romney 2025-05-19 20:17:44 -07:00
parent 0e6c2b53d9
commit cc676d2d33

View file

@ -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];