From 68ad14b6e3d62fd3be80738ea0cfe15d53466c17 Mon Sep 17 00:00:00 2001 From: saidaipparla Date: Thu, 27 Oct 2016 15:26:59 +0200 Subject: [PATCH] fix_current_map (#1223) --- web/client/reducers/currentMap.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/web/client/reducers/currentMap.js b/web/client/reducers/currentMap.js index 0d95c020d2..71a020227d 100644 --- a/web/client/reducers/currentMap.js +++ b/web/client/reducers/currentMap.js @@ -100,12 +100,7 @@ function currentMap(state = {}, action) { return assign({}, state, {permissionLoading: false}); } case RESET_CURRENT_MAP: { - // resetting all the keys of the currentMap state - let newCurrentMap = Object.keys(state).reduce(function(previous, current) { - previous[current] = null; - return previous; - }, {}); - return assign({}, newCurrentMap); + return {}; } default: return state;