Interactive interface for browsing global, full-resolution satellite imagery
close modals on tour permalink change #2539
Benjamin Kinge1f761895275
diff --git a/web/js/containers/tour.js b/web/js/containers/tour.jsindex 42a9f1f5f..84b3dfe43 100644--- a/web/js/containers/tour.js+++ b/web/js/containers/tour.js@@ -11,10 +11,12 @@ import {} from '../modules/palettes/util';import { BULK_PALETTE_RENDERING_SUCCESS } from '../modules/palettes/constants';import { stop as stopAnimation } from '../modules/animation/actions';+import {onClose as closeModal} from '../modules/modal/actions';import { connect } from 'react-redux';import googleTagManager from 'googleTagManager';import { layersParse12 } from '../modules/layers/util';import { endTour, selectStory, startTour } from '../modules/tour/actions';+import { findIndex as lodashFindIndex, get as lodashGet, uniqBy } from 'lodash';import ErrorBoundary from './error-boundary';import update from 'immutability-helper';@@ -404,8 +406,8 @@ const mapDispatchToProps = dispatch => ({totalSteps: totalSteps}});-dispatch(stopAnimation());+ dispatch(closeModal());if ((parameters.l && hasCustomTypePalette(parameters.l)) ||(parameters.l1 && hasCustomTypePalette(parameters.l1))