From 02eafd26b8841ed5896ab83672aba13d569ea63d Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 5 Sep 2017 09:55:19 +0200 Subject: Fix issue loading DC with previously filled store --- src/reducers/topology.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/reducers') 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; } -- cgit v1.2.3