Skip to content

Commit

Permalink
reducer updated correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed May 15, 2017
1 parent 38e8535 commit 226afb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/client/reducers/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ function maps(state = {
}
case EDIT_MAP: {
return assign({}, state, {
metadata: {name: action.map && action.map.name || "", description: action.map && action.map.description || ""}
metadata: {
name: action.map && action.map.name || state && state.metadata && state.metadata.name || "",
description: action.map && action.map.description || state && state.metadata && state.metadata.description || ""
}
});
}
case RESET_CURRENT_MAP: {
Expand Down

0 comments on commit 226afb8

Please sign in to comment.