if not signed in, cycle orgs triggers login
This commit is contained in:
parent
0e6c2b53d9
commit
cc676d2d33
1 changed files with 5 additions and 3 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue