From 344e66af2f4146ea377aab30f3e2501dc325b485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez?= Date: Tue, 6 Feb 2024 13:08:05 +0100 Subject: [PATCH] applies correctly filter WDPA filter to WDPA Preview layer --- app/hooks/map/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/hooks/map/index.ts b/app/hooks/map/index.ts index d0c158dd09..31bcba2818 100644 --- a/app/hooks/map/index.ts +++ b/app/hooks/map/index.ts @@ -312,8 +312,8 @@ export function useWDPAPreviewLayer({ // wdpaIucnCategories are filtered in two steps as they are custom and WDPA. filter: [ 'any', - ['all', ['in', ['get', 'iucn_cat'], ['literal', id]]], - ['all', ['in', ['get', 'id'], ['literal', id]]], + ['all', ['in', ['get', 'iucn_cat'], ['literal', [id]]]], + ['all', ['in', ['get', 'id'], ['literal', [id]]]], ], paint: { 'fill-color': COLORS['wdpa-preview'],