The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Check for query success before loading
Terry Suttona5cdac7c08d6
diff --git a/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/studio/components/interfaces/Home/ProjectList/ProjectList.tsxindex c13e8b7031f..b63c4891a81 100644--- a/studio/components/interfaces/Home/ProjectList/ProjectList.tsx+++ b/studio/components/interfaces/Home/ProjectList/ProjectList.tsx@@ -24,7 +24,7 @@ export interface ProjectListProps {}const ProjectList = ({ rewriteHref }: ProjectListProps) => {- const { data: organizations } = useOrganizationsQuery()+ const { data: organizations, isSuccess } = useOrganizationsQuery()const {data: allProjects,isLoading: isLoadingProjects,@@ -40,7 +40,7 @@ const ProjectList = ({ rewriteHref }: ProjectListProps) => {const projectsByOrg = groupBy(allProjects, 'organization_id')const isLoadingPermissions = IS_PLATFORM ? _isLoadingPermissions : false- return organizations && organizations?.length > 0 ? (+ return isSuccess && organizations && organizations?.length > 0 ? (<>{organizations?.map((organization) => {return (