|
|
'use strict';
|
|
|
|
|
|
import AccountSettlementInitialState from './accountSettlementInitialState'
|
|
|
import Immutable, {List, Record} from 'immutable';
|
|
|
|
|
|
const {
|
|
|
ACCOUNT_LIST_REQUEST,
|
...
|
...
|
@@ -23,10 +24,9 @@ export default function messageReducer(state = initialState, action) { |
|
|
break;
|
|
|
case ACCOUNT_LIST_SUCCESS:{
|
|
|
const {jsonData} = state;
|
|
|
|
|
|
let data = [...jsonData, ...action.payload];
|
|
|
|
|
|
let nextState = state.set('isFetching',false).set('jsonData',data);
|
|
|
let origin = jsonData.toJS();
|
|
|
let data = [...origin, ...action.payload];
|
|
|
let nextState = state.set('isFetching',false).set('jsonData', List(data));
|
|
|
return nextState;
|
|
|
}
|
|
|
break;
|
...
|
...
|
|