diff --git a/apps/desktop/src/utils/queries.ts b/apps/desktop/src/utils/queries.ts index 4b65b225bd0..fd9d423c815 100644 --- a/apps/desktop/src/utils/queries.ts +++ b/apps/desktop/src/utils/queries.ts @@ -351,12 +351,9 @@ export function createCustomDomainQuery() { export function createOrganizationsQuery() { const auth = authStore.createQuery(); - // Refresh organizations if they're missing + // Bootstrap only: auth.rs stamps organizations_updated_at even on org-fetch failure, stopping the loop on self-hosted where the endpoint is absent. createEffect(() => { - if ( - auth.data?.user_id && - (!auth.data?.organizations || auth.data.organizations.length === 0) - ) { + if (auth.data?.user_id && !auth.data?.organizations_updated_at) { commands.updateAuthPlan().catch(console.error); } });