Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

check for layers in settings array that dont exist in config

ryanweiler92effb47de0240
diff --git a/web/js/modules/product-picker/selectors.js b/web/js/modules/product-picker/selectors.js
index 507ece0c8..feca2368b 100644
--- a/web/js/modules/product-picker/selectors.js
+++ b/web/js/modules/product-picker/selectors.js
@@ -43,7 +43,7 @@ export const getSourcesForProjection = createSelector(
const trackGroup = currentMeasurement && currentMeasurement.id === 'orbital-track';
const sourcesForProj = sources && sources.filter(
(source) => source.settings.some((layerId) => {
- if (!config.layers[layerId].projections) return;
+ if (!config.layers[layerId] || !config.layers[layerId].projections) return;
const { projections, layergroup } = config.layers[layerId];
const isOrbitTrack = layergroup === 'Orbital Track';
const inProj = !!projections[projection];