From 52795c38fc23ed44c2f50da30f0dd30706e700c2 Mon Sep 17 00:00:00 2001 From: ohinhyuk <8156217@naver.com> Date: Mon, 18 Sep 2023 17:37:09 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20=EB=B3=B4=EA=B3=A0=EC=84=9C=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1=20=EC=8B=9C=20=EB=A7=88=EC=8A=A4=ED=82=B9?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=9D=B8=ED=95=B4=20=EC=B9=9C=EA=B5=AC?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=EC=9D=B4=20=EB=90=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95=20(sid=20->?= =?UTF-8?q?=20id=20=EB=A5=BC=20=EB=B3=B4=EB=82=B4=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- histudy-front/src/components/Post/PostMember.js | 6 +++--- histudy-front/src/pages/Manager/ManageGroup.js | 2 ++ histudy-front/src/pages/Post/Post.js | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/histudy-front/src/components/Post/PostMember.js b/histudy-front/src/components/Post/PostMember.js index 8f3e924..67b4317 100644 --- a/histudy-front/src/components/Post/PostMember.js +++ b/histudy-front/src/components/Post/PostMember.js @@ -30,7 +30,7 @@ export default function PostMember({ control, setValue, getValues }) { {teamMember?.map((tm, index) => ( ( )} diff --git a/histudy-front/src/pages/Manager/ManageGroup.js b/histudy-front/src/pages/Manager/ManageGroup.js index d44730d..2db292c 100644 --- a/histudy-front/src/pages/Manager/ManageGroup.js +++ b/histudy-front/src/pages/Manager/ManageGroup.js @@ -40,6 +40,8 @@ const SizedBox = styled(Box)({ }); export default function ManageGroup() { + + const [groupData, setGroupData] = useState(); const [ungroupData, setUngroupData] = useState(); const setGroupAutoCompleteState = useSetRecoilState(groupAutoCompleteState); diff --git a/histudy-front/src/pages/Post/Post.js b/histudy-front/src/pages/Post/Post.js index 9b25ab3..828af77 100644 --- a/histudy-front/src/pages/Post/Post.js +++ b/histudy-front/src/pages/Post/Post.js @@ -38,7 +38,7 @@ export default function Post({ children }) { defaultValues: { title: state ? state.title : "", content: state ? state.content : "", - participants: state ? state.participants.map((p) => p.sid) : [], + participants: state ? state.participants.map((p) => p.id) : [], totalMinutes: state ? state.totalMinutes : "", images: state ? [...state.images.map((image) => image.url)] : [], courses: state ? state.courses.map((c) => c.id.toString()) : [],