From cc72462d417310290083cce31ac1f59176e965bf Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Thu, 7 Sep 2017 13:11:02 -0400 Subject: [PATCH] Add comments for two actions consumed by two reducers each --- ui/src/data_explorer/reducers/queryConfigs.js | 2 ++ ui/src/data_explorer/reducers/ui.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ui/src/data_explorer/reducers/queryConfigs.js b/ui/src/data_explorer/reducers/queryConfigs.js index 8fb9fddbf..9aa0aaec5 100644 --- a/ui/src/data_explorer/reducers/queryConfigs.js +++ b/ui/src/data_explorer/reducers/queryConfigs.js @@ -40,6 +40,7 @@ const queryConfigs = (state = {}, action) => { }) } + // there is an additional reducer for this same action in the ui reducer case 'DE_ADD_QUERY': { const {queryID} = action.payload @@ -49,6 +50,7 @@ const queryConfigs = (state = {}, action) => { } } + // there is an additional reducer for this same action in the ui reducer case 'DE_DELETE_QUERY': { const {queryID} = action.payload return _.omit(state, queryID) diff --git a/ui/src/data_explorer/reducers/ui.js b/ui/src/data_explorer/reducers/ui.js index 4cf7b95d1..6a044d3a6 100644 --- a/ui/src/data_explorer/reducers/ui.js +++ b/ui/src/data_explorer/reducers/ui.js @@ -4,6 +4,7 @@ const initialState = { export default function ui(state = initialState, action) { switch (action.type) { + // there is an additional reducer for this same action in the queryConfig reducer case 'DE_ADD_QUERY': { const {queryID} = action.payload const newState = { @@ -13,6 +14,7 @@ export default function ui(state = initialState, action) { return {...state, ...newState} } + // there is an additional reducer for this same action in the queryConfig reducer case 'DE_DELETE_QUERY': { const {queryID} = action.payload const newState = {