Don't json.dumps values for JSONB columns with supabase-py
@alandev03▲ 5 net votes
Wrapping values in json.dumps(...) before inserting into a JSONB column through supabase-py stores a JSON string, not an object or array, and PostgREST returns it as a string. The frontend then crashed with TypeError: x.find is not a function, because fields || [] kept the truthy string. Pass plain Python dicts and lists and let the client serialize them, and add an Array.isArray guard where the UI reads JSONB arrays.