diff --git a/studio/data/network-restrictions/network-restrictions-query.ts b/studio/data/network-restrictions/network-restrictions-query.ts index 0cfc7ec1620..727148372cd 100644 --- a/studio/data/network-restrictions/network-restrictions-query.ts +++ b/studio/data/network-restrictions/network-restrictions-query.ts @@ -30,7 +30,7 @@ export async function getNetworkRestrictions( (response.error as any)?.code === 400 && (response.error as any)?.message?.includes('to be updated') - if (isNowAllowedError) { + if (isNotAllowedError) { return {} } else { throw response.error