Interactive interface for browsing global, full-resolution satellite imagery
dry up componentdidupdate
Edward Platobf81f1265d53
diff --git a/web/js/components/timeline/timeline.js b/web/js/components/timeline/timeline.jsindex 74882bdc6..bfdfd3fd3 100644--- a/web/js/components/timeline/timeline.js+++ b/web/js/components/timeline/timeline.js@@ -173,20 +173,13 @@ class Timeline extends React.Component {componentDidUpdate(prevProps, prevState) {if (this.state.intervalChangeAmt !== prevState.intervalChangeAmt || this.state.timeScaleChangeUnit !== prevState.timeScaleChangeUnit) {- console.log('tester')this.checkLeftArrowDisabled();this.checkRightArrowDisabled();}- if (this.state.draggerSelected === 'selected') {- if (this.state.dateFormatted !== prevState.dateFormatted) {- this.checkLeftArrowDisabled();- this.checkRightArrowDisabled();- }- } else if (this.state.draggerSelected === 'selectedB') {- if (this.state.dateFormattedB !== prevState.dateFormattedB) {+ if ((this.state.draggerSelected === 'selected' && this.state.dateFormatted !== prevState.dateFormatted)+ || (this.state.draggerSelected === 'selectedB' && this.state.dateFormattedB !== prevState.dateFormattedB)) {this.checkLeftArrowDisabled();this.checkRightArrowDisabled();- }}}