The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: do not query project usage with org-level-billing
Kevin Grüneberga1dddf29b018
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsxindex 09c7df66bed..4fbeb4a10db 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx@@ -25,10 +25,18 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder =connectionString: selectedProject?.connectionString,})- const { data: usage } = useProjectUsageQuery({ projectRef })+ // Skip with org-level-billing, as quota is for the entire org+ const { data: usage } = useProjectUsageQuery(+ { projectRef },+ { enabled: selectedOrganization && !selectedOrganization.subscription_id }+ )const resourcesExceededLimits = getResourcesExceededLimits(usage)- const { data: subscription } = useProjectSubscriptionV2Query({ projectRef })+ // Skip with org-level-billing, as quota is for the entire org+ const { data: subscription } = useProjectSubscriptionV2Query(+ { projectRef },+ { enabled: selectedOrganization && !selectedOrganization.subscription_id }+ )const projectHasNoLimits = subscription?.usage_billing_enabled === false