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 1/3] =?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()) : [], From 6f5397ed48f4e75218c81ff0b55b10f7d389a3b6 Mon Sep 17 00:00:00 2001 From: ohinhyuk <8156217@naver.com> Date: Mon, 18 Sep 2023 18:00:38 +0900 Subject: [PATCH 2/3] =?UTF-8?q?Fix=20:=20=EB=B3=B4=EA=B3=A0=EC=84=9C=20?= =?UTF-8?q?=EC=A0=9C=EC=B6=9C=EC=8B=9C=20=ED=95=99=EC=83=9D=20ID=EA=B0=80?= =?UTF-8?q?=20number=EB=9D=BC=EC=84=9C=20=EC=B2=B4=ED=81=AC=EB=B0=95?= =?UTF-8?q?=EC=8A=A4=20=EC=84=A0=ED=83=9D=EB=90=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=20=EB=B2=84=EA=B7=B8=20String=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=B0=94=EA=BF=88=EC=9C=BC=EB=A1=9C=EC=8D=A8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95(#65)?= 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/Post/Post.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/histudy-front/src/components/Post/PostMember.js b/histudy-front/src/components/Post/PostMember.js index 67b4317..d8c11c5 100644 --- a/histudy-front/src/components/Post/PostMember.js +++ b/histudy-front/src/components/Post/PostMember.js @@ -15,7 +15,7 @@ export default function PostMember({ control, setValue, getValues }) { let { value, checked } = event.target; // value = value.slice(value.length - 8, value.length); - + console.log(",dsad", value); if (checked) { setValue("participants", [...getValues("participants"), value]); } else { @@ -39,8 +39,8 @@ export default function PostMember({ control, setValue, getValues }) { render={({ field }) => ( )} diff --git a/histudy-front/src/pages/Post/Post.js b/histudy-front/src/pages/Post/Post.js index 828af77..c88339c 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.id) : [], + 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()) : [], From 099f2961f476fe4d6a8521b2960025345a618c16 Mon Sep 17 00:00:00 2001 From: ohinhyuk <8156217@naver.com> Date: Mon, 18 Sep 2023 18:02:08 +0900 Subject: [PATCH 3/3] =?UTF-8?q?Refactor=20:=20=EC=BD=98=EC=86=94=20?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=20=EC=82=AD=EC=A0=9C(#65)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- histudy-front/src/components/Post/PostMember.js | 1 - 1 file changed, 1 deletion(-) diff --git a/histudy-front/src/components/Post/PostMember.js b/histudy-front/src/components/Post/PostMember.js index d8c11c5..d8dca39 100644 --- a/histudy-front/src/components/Post/PostMember.js +++ b/histudy-front/src/components/Post/PostMember.js @@ -15,7 +15,6 @@ export default function PostMember({ control, setValue, getValues }) { let { value, checked } = event.target; // value = value.slice(value.length - 8, value.length); - console.log(",dsad", value); if (checked) { setValue("participants", [...getValues("participants"), value]); } else {