Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

add console warning if dateRanges is missing from layer wv-2069

Benc283e5830732
diff --git a/web/js/modules/layers/util.js b/web/js/modules/layers/util.js
index 4f81a2967..eee495a23 100644
--- a/web/js/modules/layers/util.js
+++ b/web/js/modules/layers/util.js
@@ -1334,6 +1334,8 @@ export function adjustStartDates(layers) {
if (Array.isArray(dateRanges) && dateRanges.length) {
const [firstDateRange] = dateRanges;
firstDateRange.startDate = adjustDate(rollingWindow);
+ } else {
+ console.warn(`GetCapabilities is missing the time value for ${layer.id}`);
}
if (Array.isArray(historicalRanges) && historicalRanges.length) {