Add comments for two actions consumed by two reducers each
parent
9059b03fd6
commit
cc72462d41
|
@ -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)
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue