Skip to content

Commit

Permalink
fix_current_map (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
saidaipparla authored and mbarto committed Oct 27, 2016
1 parent 5a12fa1 commit 68ad14b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions web/client/reducers/currentMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 68ad14b

Please sign in to comment.