From 0c0d6b56092e1cf902486641643612c365ae1087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=84=B8=EB=AF=BC?= <89172499+semnil5202@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:33:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B9=84=ED=9A=8C=EC=9B=90=EC=9E=90?= =?UTF-8?q?=EC=97=90=EA=B2=8C=20members=20=EB=AA=A9=EB=A1=9D=20=EB=B3=B4?= =?UTF-8?q?=EC=97=AC=EC=A3=BC=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20(#535)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/AuthorityRadioContainer/index.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/AuthorityRadioContainer/index.tsx b/frontend/src/components/AuthorityRadioContainer/index.tsx index f1458b2c..45002ffc 100644 --- a/frontend/src/components/AuthorityRadioContainer/index.tsx +++ b/frontend/src/components/AuthorityRadioContainer/index.tsx @@ -40,7 +40,11 @@ const AuthorityRadioContainer = ({ const viewPrevAuthorMembersCondition = authorizedMemberIds.length === 0 && !isAllPermissioned; - useEffect(() => { + const onChangeInitAuthMembers = () => { + setIsAllPermissioned(false); + openModal('newTopic'); + setAuthorizedMemberIds([]); + fetchGet( '/members', '사용자 목록을 가져오는데 실패했습니다.', @@ -48,12 +52,6 @@ const AuthorityRadioContainer = ({ setMembers(response); }, ); - }, []); - - const onChangeInitAuthMembers = () => { - setIsAllPermissioned(false); - openModal('newTopic'); - setAuthorizedMemberIds([]); }; const onChangeInitAuthMembersWithSetIsAllPermissioned = () => {