summaryrefslogtreecommitdiff
path: root/src/reducers/topology.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/reducers/topology.js')
-rw-r--r--src/reducers/topology.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reducers/topology.js b/src/reducers/topology.js
index caafb7c1..e0236e0c 100644
--- a/src/reducers/topology.js
+++ b/src/reducers/topology.js
@@ -1,9 +1,11 @@
-import {FETCH_LATEST_DATACENTER_SUCCEEDED} from "../actions/topology";
+import {FETCH_LATEST_DATACENTER_SUCCEEDED, RESET_CURRENT_DATACENTER} from "../actions/topology";
export function currentDatacenterId(state = -1, action) {
switch (action.type) {
case FETCH_LATEST_DATACENTER_SUCCEEDED:
return action.datacenterId;
+ case RESET_CURRENT_DATACENTER:
+ return -1;
default:
return state;
}