|
|
@ -17,8 +17,17 @@ export const groupReducer = createReducer<GroupState, Actions.GroupAction>( |
|
|
|
.handleAction(Actions.JOIN_LIST.success, (state, action) => |
|
|
|
.handleAction(Actions.JOIN_LIST.success, (state, action) => |
|
|
|
produce(state, draft => { |
|
|
|
produce(state, draft => { |
|
|
|
const { data, count } = action.payload; |
|
|
|
const { data, count } = action.payload; |
|
|
|
draft.joinList = data; |
|
|
|
|
|
|
|
draft.joinListCount = count; |
|
|
|
const agreeList = data.filter(res => { |
|
|
|
|
|
|
|
if(res.aprvlYn === 'Y') { |
|
|
|
|
|
|
|
return res; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
draft.joinList = agreeList; |
|
|
|
|
|
|
|
draft.joinListCount = agreeList.length; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// draft.joinList = data;
|
|
|
|
|
|
|
|
// draft.joinListCount = count;
|
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
.handleAction(Actions.GROUP_CREATEID.success, (state, action) => |
|
|
|
.handleAction(Actions.GROUP_CREATEID.success, (state, action) => |
|
|
|