The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix settings/infrastructure compute instance data (#21363)
Jordi Enric29e447b15396
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsxindex 122cd52b089..5fae6296f83 100644--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx@@ -50,10 +50,18 @@ const InfrastructureActivity = () => {const selectedAddons = addons?.selected_addons ?? []const { computeInstance } = getAddons(selectedAddons)- const currentComputeInstanceSpecs =- computeInstance?.variant?.meta ?? project?.infra_compute_size === 'nano'- ? INSTANCE_NANO_SPECS- : INSTANCE_MICRO_SPECS++ function getCurrentComputeInstanceSpecs() {+ if (computeInstance?.variant.meta) {+ // If user has a compute instance (called addons) return that+ return computeInstance?.variant.meta+ } else {+ // Otherwise, return the default specs+ return project?.infra_compute_size === 'nano' ? INSTANCE_NANO_SPECS : INSTANCE_MICRO_SPECS+ }+ }++ const currentComputeInstanceSpecs = getCurrentComputeInstanceSpecs()const currentBillingCycleSelected = useMemo(() => {// Selected by default