From b1021f0b1bef3ce61f356b6c0edb41f63b463387 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 27 Sep 2025 20:56:46 +0000 Subject: [PATCH] Return object instead of null from mock single() to avoid spread errors cgen-c16ce148051f49a397aa0953934fffb6 --- client/lib/supabase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/supabase.ts b/client/lib/supabase.ts index a439fc42..68b74755 100644 --- a/client/lib/supabase.ts +++ b/client/lib/supabase.ts @@ -144,7 +144,7 @@ export const supabase = new Proxy(supabaseClient || {}, { eq: () => builder, order: () => builder, limit: () => builder, - single: async () => ({ data: rows[0] ?? null, error: null }), + single: async () => ({ data: rows[0] ?? {}, error: null }), then: undefined, // prevent accidental Promise behavior }; return builder;