From 8b790b06ea374daea354367285cf8e513432f86c Mon Sep 17 00:00:00 2001 From: Vincent de Graaf Date: Thu, 28 Mar 2024 15:06:36 +0100 Subject: [PATCH] Make comparison less strict (#2836) --- .../Asset/Selector/WfsLayer/AssetLayer/AssetLayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signals/incident/components/form/MapSelectors/Asset/Selector/WfsLayer/AssetLayer/AssetLayer.tsx b/src/signals/incident/components/form/MapSelectors/Asset/Selector/WfsLayer/AssetLayer/AssetLayer.tsx index 209a8bbbe2..0f9c19597c 100644 --- a/src/signals/incident/components/form/MapSelectors/Asset/Selector/WfsLayer/AssetLayer/AssetLayer.tsx +++ b/src/signals/incident/components/form/MapSelectors/Asset/Selector/WfsLayer/AssetLayer/AssetLayer.tsx @@ -52,7 +52,7 @@ export const AssetLayer: FC = () => { const { description, typeValue, idField } = featureType const id = feature.properties[idField] || '' - const isSelected = Boolean(selection?.find((item) => item.id === id)) + const isSelected = Boolean(selection?.find((item) => item.id == id)) const iconUrl = isSelected ? '/assets/images/feature-selected-marker.svg'