Interactive interface for browsing global, full-resolution satellite imagery
check for defined subtitle
Jason Kent4ed3e224001a
diff --git a/web/js/modules/product-picker/selectors.js b/web/js/modules/product-picker/selectors.jsindex d11e64eb6..c70064218 100644--- a/web/js/modules/product-picker/selectors.js+++ b/web/js/modules/product-picker/selectors.js@@ -29,7 +29,7 @@ export const getLayersForProjection = createSelector(if (projectionMeta.title) layer.title = projectionMeta.title;if (projectionMeta.subtitle) layer.subtitle = projectionMeta.subtitle;// Decode HTML entities in the subtitle- if (layer.subtitle.includes('&')) {+ if (layer.subtitle && layer.subtitle.includes('&')) {layer.subtitle = decodeHtml(layer.subtitle);}return layer;