Interactive interface for browsing global, full-resolution satellite imagery
Close the comparison mode if there is no comparison mode in the step link
ZachTRice2ce1f0e104dc
diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.jsindex 80ff6c4aa..f06cd663e 100644--- a/web/js/components/tour/modal-tour-in-progress.js+++ b/web/js/components/tour/modal-tour-in-progress.js@@ -211,6 +211,15 @@ class ModalInProgress extends React.Component {var ui = this.props.ui;var rotation = 0;+ // Close the comparison mode if there is no comparison mode in the step link+ if ((!currentState.ca || !currentState.cm) && models.compare.active === true) {+ models.compare.toggle();+ models.compare.load({});+ ui.sidebar.reactComponent.setState({+ isCompareMode: false+ });+ }+// Set rotation value if it existsif (currentState.p === 'arctic' || currentState.p === 'antarctic') {if (!isNaN(currentState.r)) {