Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

re-render map - compare state change for spy #1832

Benjamin Kingd2a199841e32
diff --git a/web/js/map/ui.js b/web/js/map/ui.js
index 70582259c..7f2cffcef 100644
--- a/web/js/map/ui.js
+++ b/web/js/map/ui.js
@@ -112,7 +112,7 @@ export function mapui(models, config, store, ui) {
case layerConstants.UPDATE_OPACITY:
return updateOpacity(action);
case compareConstants.CHANGE_STATE:
- if (action.mode === 'spy') {
+ if (store.getState().compare.mode === 'spy') {
return reloadLayers();
}
return;