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] =?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()) : [],