Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

tile-measurement.js: Removed redundant findBestDate() call after for loops

Jason Hurley211677f8562e
diff --git a/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js b/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js
index dabb4dc76..a9a63addd 100644
--- a/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js
+++ b/web/js/mapUI/components/kiosk/tile-measurement/tile-measurement.js
@@ -99,8 +99,6 @@ function TileMeasurement({ ui }) {
layersMeetingThresholdForDate = 0;
}
- const firstLayerWithBestDate = findBestDate(layers, bestDates);
-
if (!firstLayerWithBestDate) {
console.error(`No date found that satisfies the full imagery thresholds. There is no best date selected for ${layers[0].id}.`);
return dates[0];