|
|
@ -22,7 +22,7 @@ export const groupReducer = createReducer<GroupState, Actions.GroupAction>( |
|
|
|
if (res.aprvlYn === 'Y') { |
|
|
|
if (res.aprvlYn === 'Y') { |
|
|
|
return res; |
|
|
|
return res; |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
draft.joinList = agreeList; |
|
|
|
draft.joinList = agreeList; |
|
|
|
draft.joinListCount = agreeList.length; |
|
|
|
draft.joinListCount = agreeList.length; |
|
|
|
|
|
|
|
|
|
|
@ -34,18 +34,16 @@ export const groupReducer = createReducer<GroupState, Actions.GroupAction>( |
|
|
|
produce(state, draft => { |
|
|
|
produce(state, draft => { |
|
|
|
const { data, count } = action.payload; |
|
|
|
const { data, count } = action.payload; |
|
|
|
console.log(data); |
|
|
|
console.log(data); |
|
|
|
|
|
|
|
// const agreeList = data.filter(res => {
|
|
|
|
|
|
|
|
// if (res.aprvlYn === 'Y') {
|
|
|
|
|
|
|
|
// return res;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// draft.mainList = agreeList;
|
|
|
|
|
|
|
|
// draft.mainListCount = agreeList.length;
|
|
|
|
|
|
|
|
|
|
|
|
const agreeList = data.filter(res => { |
|
|
|
draft.mainList = data; |
|
|
|
if(res.aprvlYn === 'Y') { |
|
|
|
draft.mainListCount = count; |
|
|
|
return res; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
draft.mainList = agreeList; |
|
|
|
|
|
|
|
draft.mainListCount = agreeList.length; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// draft.mainList = data;
|
|
|
|
|
|
|
|
// draft.mainListCount = count;
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
.handleAction(Actions.GROUP_MYLIST.success, (state, action) => |
|
|
|
.handleAction(Actions.GROUP_MYLIST.success, (state, action) => |
|
|
|