deselect in reducer

This commit is contained in:
Colin Megill
2017-11-16 21:00:36 -08:00
parent a137957c47
commit 976fc68b9d

View File

@@ -17,6 +17,10 @@ const Controls = (state = {
return Object.assign({}, state, {
graphBrushSelection: action.brushCoords
})
case "graph brush deselect":
return Object.assign({}, state, {
graphBrushSelection: null
})
default:
return state;
}