...
|
...
|
@@ -6,6 +6,7 @@ import Immutable, {Map} from 'immutable'; |
|
|
const {
|
|
|
SET_DATASOURCE,
|
|
|
SET_SELECTLIST,
|
|
|
CANCEL_SELECT,
|
|
|
} = require('../../constants/actionTypes').default;
|
|
|
|
|
|
const initialState = new InitialState;
|
...
|
...
|
@@ -15,6 +16,7 @@ export default function screenReducer(state=initialState, action) { |
|
|
case SET_DATASOURCE:
|
|
|
{
|
|
|
return state.set('categoryFilterList',Immutable.fromJS(action.payload.categoryFilterList))
|
|
|
.set('origincategoryFilterList',Immutable.fromJS(action.payload.categoryFilterList))
|
|
|
.set('filterCategoryDetailFilterList',Immutable.fromJS(action.payload.filterCategoryDetailFilterList))
|
|
|
.set('dataSourceType', action.payload.dataSourceType);
|
|
|
}
|
...
|
...
|
@@ -22,6 +24,10 @@ export default function screenReducer(state=initialState, action) { |
|
|
{
|
|
|
return state.set('categoryFilterList',Immutable.fromJS(action.payload));
|
|
|
}
|
|
|
case CANCEL_SELECT:
|
|
|
{
|
|
|
return state.set('categoryFilterList',Immutable.fromJS(action.payload));
|
|
|
}
|
|
|
}
|
|
|
return state;
|
|
|
} |
...
|
...
|
|