From 7ff0524bb7e32e4161b4c79ede372d6649949fd8 Mon Sep 17 00:00:00 2001 From: Alexander Clausen Date: Sun, 6 Jan 2019 05:35:43 +0100 Subject: [PATCH] Allow inspect mode to count properly Example: https://maputnik.github.io/editor/#12.86/54.38618/9.76697 --- src/components/map/FeaturePropertyPopup.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/FeaturePropertyPopup.jsx b/src/components/map/FeaturePropertyPopup.jsx index a018349..71b9983 100644 --- a/src/components/map/FeaturePropertyPopup.jsx +++ b/src/components/map/FeaturePropertyPopup.jsx @@ -43,7 +43,7 @@ function removeDuplicatedFeatures(features) { if(featureIndex === -1) { uniqueFeatures.push(feature) } else { - if(uniqueFeatures[featureIndex].hasOwnProperty('counter')) { + if(uniqueFeatures[featureIndex].hasOwnProperty('inspectModeCounter')) { uniqueFeatures[featureIndex].inspectModeCounter++ } else { uniqueFeatures[featureIndex].inspectModeCounter = 2