We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4133be commit aea697fCopy full SHA for aea697f
js/script.js
@@ -706,9 +706,10 @@ require([
706
orButton.style.backgroundColor = '#797979';
707
708
// reset time slider
709
- timeSlider.timeExtent.start = new Date(1850, 0, 1);
710
- timeSlider.timeExtent.end = new Date(2024, 0, 1);
711
-
+ if (timeSlider) {
+ timeSlider.timeExtent.start = new Date(1850, 0, 1);
+ timeSlider.timeExtent.end = new Date(2024, 0, 1);
712
+ }
713
// clear sketches
714
clearBtn.click();
715
0 commit comments