Skip to content

Commit

Permalink
fix: 비회원자에게 members 목록 보여주지 않도록 변경 (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 authored Oct 2, 2023
1 parent 52f3a6c commit 0c0d6b5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions frontend/src/components/AuthorityRadioContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,18 @@ const AuthorityRadioContainer = ({
const viewPrevAuthorMembersCondition =
authorizedMemberIds.length === 0 && !isAllPermissioned;

useEffect(() => {
const onChangeInitAuthMembers = () => {
setIsAllPermissioned(false);
openModal('newTopic');
setAuthorizedMemberIds([]);

fetchGet<TopicAuthorMember[]>(
'/members',
'사용자 목록을 가져오는데 실패했습니다.',
(response) => {
setMembers(response);
},
);
}, []);

const onChangeInitAuthMembers = () => {
setIsAllPermissioned(false);
openModal('newTopic');
setAuthorizedMemberIds([]);
};

const onChangeInitAuthMembersWithSetIsAllPermissioned = () => {
Expand Down

0 comments on commit 0c0d6b5

Please sign in to comment.