Skip to content

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

Add guard

Joshen Limc64cdb3c2fd1
diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
index 7f09507c99c..35242df3cb8 100644
--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
@@ -86,7 +86,7 @@ const NetworkRestrictions = ({}) => {
const canUpdateNetworkRestrictions = checkPermissions(PermissionAction.UPDATE, 'projects')
const hasAccessToRestrictions = data?.entitlement === 'allowed'
- const restrictedIps = data?.config.dbAllowedCidrs ?? []
+ const restrictedIps = data?.config?.dbAllowedCidrs ?? []
const restrictionStatus = data?.status ?? ''
const hasApplyError = restrictedIps.length === 0 && restrictionStatus === 'stored'