Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

remove too-many-day error throw #801

Benjamin King8fc1967036c1
diff --git a/web/js/util/util.js b/web/js/util/util.js
index 0bd343c4f..fdd65da78 100644
--- a/web/js/util/util.js
+++ b/web/js/util/util.js
@@ -301,9 +301,7 @@ export default (function (self) {
var i = 1;
var currentDate = start;
while (currentDate < end) {
- if (i > 1000) throw new Error('Too many days selected');
i++;
-
currentDate = self.dateAdd(currentDate, interval, 1);
}
return i;