summaryrefslogtreecommitdiff
path: root/src/reducers
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-05 09:55:19 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:57 +0200
commit02eafd26b8841ed5896ab83672aba13d569ea63d (patch)
tree4ef0a58b0efdb0d0ccbac81d45c25397c875398e /src/reducers
parent42778e8be409b97059fa519b53c303cdba502e01 (diff)
Fix issue loading DC with previously filled store
Diffstat (limited to 'src/reducers')
-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;
}