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