Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix setLayerProp fix

Benjamin Kingc43571f2f836
diff --git a/web/js/modules/product-picker/format-config.js b/web/js/modules/product-picker/format-config.js
index ac2a094d3..8031ce752 100644
--- a/web/js/modules/product-picker/format-config.js
+++ b/web/js/modules/product-picker/format-config.js
@@ -18,6 +18,7 @@ function capitalizeFirstLetter(string) {
}
function setLayerProp (layer, prop, value) {
+ if (!layer) return;
if (prop === 'measurements' && (value && value.includes('Featured'))) {
return;
}