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