How to conditionally filter? - Supabase