Skip to content

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

null-safety

Kevin Grüneberg2e91f3227cb9
diff --git a/studio/components/interfaces/BillingV2/Subscription/AddOns/ComputeInstanceSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/AddOns/ComputeInstanceSidePanel.tsx
index 91eb399cdac..43d224f320d 100644
--- a/studio/components/interfaces/BillingV2/Subscription/AddOns/ComputeInstanceSidePanel.tsx
+++ b/studio/components/interfaces/BillingV2/Subscription/AddOns/ComputeInstanceSidePanel.tsx
@@ -59,7 +59,7 @@ const ComputeInstanceSidePanel = () => {
const selectedAddons = addons?.selected_addons ?? []
const availableAddons = addons?.available_addons ?? []
- const isFreePlan = subscription?.plan.id === 'free'
+ const isFreePlan = subscription?.plan?.id === 'free'
const subscriptionCompute = selectedAddons.find((addon) => addon.type === 'compute_instance')
const pitrAddon = selectedAddons.find((addon) => addon.type === 'pitr')
const availableOptions =
diff --git a/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx b/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx
index c354f72cc97..7ae5146c214 100644
--- a/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx
+++ b/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx
@@ -26,7 +26,7 @@ const Infrastructure = ({}: InfrastructureProps) => {
const { ref } = useParams()
const { project } = useProjectContext()
const { data: subscription } = useProjectSubscriptionV2Query({ projectRef: ref })
- const isFreeProject = subscription?.plan.id === 'free'
+ const isFreeProject = subscription?.plan?.id === 'free'
const {
data,