The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
feat: strict null check on isResponseOk()
Greg Richardson251d5ead79d1
diff --git a/studio/lib/common/fetch/base.ts b/studio/lib/common/fetch/base.tsindex 86c88c4d624..ff6375d995b 100644--- a/studio/lib/common/fetch/base.ts+++ b/studio/lib/common/fetch/base.ts@@ -115,5 +115,9 @@ export async function constructHeaders(requestId: string, optionHeaders?: { [pro}export function isResponseOk<T>(response: SupaResponse<T> | undefined): response is T {- return response !== undefined && !(typeof response === 'object' && 'error' in response)+ return (+ response !== undefined &&+ response !== null &&+ !(typeof response === 'object' && 'error' in response)+ )}