Add comments for two actions consumed by two reducers each

pull/1885/head
Jared Scheib 2017-09-07 13:11:02 -04:00
parent 9059b03fd6
commit cc72462d41
2 changed files with 4 additions and 0 deletions

View File

@ -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': { case 'DE_ADD_QUERY': {
const {queryID} = action.payload 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': { case 'DE_DELETE_QUERY': {
const {queryID} = action.payload const {queryID} = action.payload
return _.omit(state, queryID) return _.omit(state, queryID)

View File

@ -4,6 +4,7 @@ const initialState = {
export default function ui(state = initialState, action) { export default function ui(state = initialState, action) {
switch (action.type) { switch (action.type) {
// there is an additional reducer for this same action in the queryConfig reducer
case 'DE_ADD_QUERY': { case 'DE_ADD_QUERY': {
const {queryID} = action.payload const {queryID} = action.payload
const newState = { const newState = {
@ -13,6 +14,7 @@ export default function ui(state = initialState, action) {
return {...state, ...newState} return {...state, ...newState}
} }
// there is an additional reducer for this same action in the queryConfig reducer
case 'DE_DELETE_QUERY': { case 'DE_DELETE_QUERY': {
const {queryID} = action.payload const {queryID} = action.payload
const newState = { const newState = {