Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

simplify lodash find #2898

Benjamin King13ea6520c7b6
diff --git a/web/js/modules/vector-styles/util.js b/web/js/modules/vector-styles/util.js
index d21d84250..e0891a7ed 100644
--- a/web/js/modules/vector-styles/util.js
+++ b/web/js/modules/vector-styles/util.js
@@ -217,7 +217,7 @@ export function onMapClickGetVectorFeatures(pixels, map, state, swipeOffset) {
const data = config.vectorData[vectorDataId];
const properties = data.mvt_properties;
const uniqueIdentifierKey = lodashFind(properties, { Function: 'Identify' }).Identifier;
- const titleObj = lodashFind(properties, { IsLabel: true }) || lodashFind(properties, { IsLabel: 'True' });
+ const titleObj = lodashFind(properties, 'IsLabel');
const titleKey = titleObj.Identifier;
const uniqueIdentifier = features[uniqueIdentifierKey];