From d9ea92102ff0b0309c445a64ecf33ef264a4cf8a Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Wed, 25 Jan 2023 13:19:07 +0800 Subject: [PATCH] Small fix --- studio/data/network-restrictions/network-restrictions-query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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