Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

dont break when layer prop not received

Jason Kent0bb11f6cd62c
diff --git a/web/js/modules/layers/selectors.js b/web/js/modules/layers/selectors.js
index 0df96c64f..02e13b1cf 100644
--- a/web/js/modules/layers/selectors.js
+++ b/web/js/modules/layers/selectors.js
@@ -154,6 +154,7 @@ export function hasMeasurementSource(current, config, projId) {
export const makeGetDescription = () => createSelector(
[getConfig, getLayerId],
({ layers, measurements }, layerId) => {
+ if (!layerId) return;
const { layergroup } = layers[layerId];
if (layergroup === 'Orbital Track') {
return;