Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(auth): add comment explaining org refresh bootstrap guard

ManthanNimodiyac19e55c402e0
diff --git a/apps/desktop/src/utils/queries.ts b/apps/desktop/src/utils/queries.ts
index fcf00fc66..fd9d423c8 100644
--- a/apps/desktop/src/utils/queries.ts
+++ b/apps/desktop/src/utils/queries.ts
@@ -351,6 +351,7 @@ export function createCustomDomainQuery() {
export function createOrganizationsQuery() {
const auth = authStore.createQuery();
+ // 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_updated_at) {
commands.updateAuthPlan().catch(console.error);