Interactive interface for browsing global, full-resolution satellite imagery
Break animtion loop if component unmounts #1755
Benjamin King986c3da20dd1
diff --git a/web/js/components/animation-widget/play-queue.js b/web/js/components/animation-widget/play-queue.jsindex f2a76e9cf..f2881639f 100644--- a/web/js/components/animation-widget/play-queue.js+++ b/web/js/components/animation-widget/play-queue.js@@ -527,7 +527,7 @@ class PlayAnimation extends React.Component {this.shiftCache();return this.checkQueue(queueLength, this.currentPlayingDate);}- if (!this.props.isPlaying) {+ if (!this.props.isPlaying || !this.mounted) {clearInterval(this.interval);this.setState({ isPlaying: false });}