Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix initial loading

Alaister Young51178535b084
diff --git a/studio/hooks/misc/withAuth.tsx b/studio/hooks/misc/withAuth.tsx
index 4709c2972f3..6ed9a74c474 100644
--- a/studio/hooks/misc/withAuth.tsx
+++ b/studio/hooks/misc/withAuth.tsx
@@ -40,10 +40,10 @@ export function withAuth<T>(
} else if (returning !== 'minimal') {
ui.setProfile(profile)
- if (!app.organizations.isInitialized && !app.organizations.isLoading) {
+ if (!app.organizations.isInitialized) {
app.organizations.load()
}
- if (!app.projects.isInitialized && !app.projects.isLoading) {
+ if (!app.projects.isInitialized) {
app.projects.load()
}
}