The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: allow downgrade to Free Plan with no active projects (#30433)
Kevin Grüneberga2907880475c
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsxindex b40b2de2829..6929f728c9e 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx@@ -102,7 +102,9 @@ const PlanUpdateSidePanel = () => {} = useOrganizationBillingSubscriptionPreview({ tier: selectedTier, organizationSlug: slug })const availablePlans: OrgPlan[] = plans?.plans ?? []- const hasMembersExceedingFreeTierLimit = (membersExceededLimit || []).length > 0+ const hasMembersExceedingFreeTierLimit =+ (membersExceededLimit || []).length > 0 &&+ orgProjects.filter((it) => it.status !== 'INACTIVE' && it.status !== 'GOING_DOWN').length > 0const subscriptionPlanMeta = subscriptionsPlans.find((tier) => tier.id === selectedTier)const expandUsageFee = (fee: string) => {