Skip to content

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

fix: correctly check if restrictions failed to apply (#20735)

divit3783db66f758
diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
index 04968f387fc..e9ca3edfdf1 100644
--- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
@@ -109,7 +109,7 @@ const NetworkRestrictions = () => {
const restrictedIps = ipv4Restrictions.concat(ipv6Restrictions)
const restrictionStatus = data?.status ?? ''
- const hasApplyError = restrictedIps.length === 0 && restrictionStatus === 'stored'
+ const hasApplyError = restrictionStatus === 'stored'
const isUninitialized = restrictedIps.length === 0 && restrictionStatus.length === 0
const isAllowedAll = restrictedIps.includes('0.0.0.0/0') && restrictedIps.includes('::/0')
const isDisallowedAll =