From 976fc68b9dddbb18ccb494c2c8becb6457ba7fb6 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Thu, 16 Nov 2017 21:00:36 -0800 Subject: [PATCH] deselect in reducer --- src/reducers/controls.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/reducers/controls.js b/src/reducers/controls.js index a67392de..df05dea4 100644 --- a/src/reducers/controls.js +++ b/src/reducers/controls.js @@ -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; }