Interactive interface for browsing global, full-resolution satellite imagery
true bStatesInitiated if compare is active from url
Ed Plato54b98e91fbf0
diff --git a/web/js/modules/compare/actions.test.js b/web/js/modules/compare/actions.test.jsindex 921c83152..248ab1723 100644--- a/web/js/modules/compare/actions.test.js+++ b/web/js/modules/compare/actions.test.js@@ -14,7 +14,7 @@ import { INIT_SECOND_DATE, CLEAR_PRELOAD } from '../date/constants';const middlewares = [thunk];const state = fixtures.getState();-test('toggleCompareOnOff dispactches two actions', () => {+test('toggleCompareOnOff dispatches two actions', () => {const mockStore = configureMockStore(middlewares);const store = mockStore(state);store.dispatch(toggleCompareOnOff());diff --git a/web/js/modules/compare/util.js b/web/js/modules/compare/util.jsindex 659b21794..ec8bf0a78 100644--- a/web/js/modules/compare/util.js+++ b/web/js/modules/compare/util.js@@ -5,15 +5,15 @@ import util from '../../util/util';export function mapLocationToCompareState(parameters, stateFromLocation) {if (parameters.ca !== undefined) {stateFromLocation = update(stateFromLocation, {- compare: { active: { $set: true } },+ compare: {+ active: { $set: true },+ bStatesInitiated: { $set: true },+ },});if (parameters.ca === 'false') {stateFromLocation = update(stateFromLocation, {compare: { activeString: { $set: 'activeB' } },});- stateFromLocation = update(stateFromLocation, {- compare: { bStatesInitiated: { $set: true } },- });}} else {stateFromLocation = update(stateFromLocation, {