Getting an empty array on update - Supabase