From c714e23d79bf0fa66e60aaaed60496998cac8d35 Mon Sep 17 00:00:00 2001 From: orangemug Date: Thu, 30 Jan 2020 08:46:26 +0000 Subject: [PATCH] 'id' is not guaranteed to be unique, see --- src/components/map/FeaturePropertyPopup.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/map/FeaturePropertyPopup.jsx b/src/components/map/FeaturePropertyPopup.jsx index 8b7816a..56f33ae 100644 --- a/src/components/map/FeaturePropertyPopup.jsx +++ b/src/components/map/FeaturePropertyPopup.jsx @@ -22,8 +22,7 @@ function renderProperties(feature) { } function renderFeature(feature, idx) { - const uniqueKey = feature.hasOwnProperty('id') ? feature.id : idx; - return
+ return
{feature.layer['source-layer']}{feature.inspectModeCounter && × {feature.inspectModeCounter}}