Interactive interface for browsing global, full-resolution satellite imagery
add Array verify wv-2069
Benb6371e059166
diff --git a/web/js/main.js b/web/js/main.jsindex ecd96fdf2..342644ee2 100644--- a/web/js/main.js+++ b/web/js/main.js@@ -127,7 +127,7 @@ window.onload = () => {return response.json();}).then((config) => {- // Perform check to see if app was in the midst of a tour+ // Perform check to see if app was in the midst of a tourconst hasTour = lodashGet(config, `stories[${parameters.tr}]`);if (hasTour) {const isMockTour = parameters.mockTour;diff --git a/web/js/modules/layers/util.js b/web/js/modules/layers/util.jsindex 92372214c..4f81a2967 100644--- a/web/js/modules/layers/util.js+++ b/web/js/modules/layers/util.js@@ -1331,12 +1331,12 @@ export function adjustStartDates(layers) {}const { rollingWindow, historicalRanges } = availability;- if (dateRanges.length) {+ if (Array.isArray(dateRanges) && dateRanges.length) {const [firstDateRange] = dateRanges;firstDateRange.startDate = adjustDate(rollingWindow);}- if (historicalRanges && historicalRanges.length) {+ if (Array.isArray(historicalRanges) && historicalRanges.length) {layer.startDate = historicalRanges[0].startDate;historicalRanges.reverse().forEach((range) => {layer.dateRanges.unshift(range);