From 1cd24959d212df6e361c5f0946f42f540d3e831c Mon Sep 17 00:00:00 2001 From: BSanchidrian Date: Fri, 8 Nov 2024 10:32:35 +0100 Subject: [PATCH] Remove finished from map --- src/app/casos-activos/mapa/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/casos-activos/mapa/page.tsx b/src/app/casos-activos/mapa/page.tsx index 9e738f68..8ed03994 100644 --- a/src/app/casos-activos/mapa/page.tsx +++ b/src/app/casos-activos/mapa/page.tsx @@ -75,6 +75,8 @@ export default function Mapa() { query.eq('urgency', filtroData.urgencia); } + query.neq('status', 'finished'); + const { data, error } = await query.order('created_at', { ascending: false }); const pickupQuery = supabase.from('collection_points').select('*', { count: 'exact' });