Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

make sure we don't accidentally clear out facet prop values

Jason Kent39da3cbc854d
diff --git a/web/js/modules/product-picker/format-config.js b/web/js/modules/product-picker/format-config.js
index 191ad4dc5..43a063012 100644
--- a/web/js/modules/product-picker/format-config.js
+++ b/web/js/modules/product-picker/format-config.js
@@ -22,10 +22,10 @@ function setLayerProp (layer, prop, value) {
if (!layer || featuredMeasurement) {
return;
}
- if (layer[prop] && !layer[prop].includes(value)) {
- layer[prop].push(value);
- } else if (value) {
+ if (!layer[prop]) {
layer[prop] = [value];
+ } else if (!layer[prop].includes(value)) {
+ layer[prop].push(value);
}
}