Browse Source

사용자 승인에 따른 그룹 리스트 표출

pull/2/head
junh_eee 2 years ago
parent
commit
47a7560050
  1. 13
      src/modules/basis/group/reducers/basisGroupReducer.ts

13
src/modules/basis/group/reducers/basisGroupReducer.ts

@ -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) =>

Loading…
Cancel
Save