diff --git a/src/api/API_LEGACY/meeting/index.ts b/src/api/API_LEGACY/meeting/index.ts index bea250f1..493acf72 100644 --- a/src/api/API_LEGACY/meeting/index.ts +++ b/src/api/API_LEGACY/meeting/index.ts @@ -258,7 +258,6 @@ export const createMeeting = async (formData: FormType) => { export const updateMeeting = async (meetingId: string, formData: FormType) => { const response = await api.put(`/meeting/v2/${meetingId}`, serializeFormData(formData)); - return response; }; diff --git a/src/components/form/Presentation/CoLeader/index.tsx b/src/components/form/Presentation/CoLeader/index.tsx index 0d0e386a..6e05dc50 100644 --- a/src/components/form/Presentation/CoLeader/index.tsx +++ b/src/components/form/Presentation/CoLeader/index.tsx @@ -8,6 +8,7 @@ import { IconXCircle } from '@sopt-makers/icons'; import { useQueryGetMentionUsers } from '@api/user/hooks'; import { fontsObject } from '@sopt-makers/fonts'; import { IconXClose } from '@sopt-makers/icons'; +import { useQueryMyProfile } from '@api/API_LEGACY/user/hooks'; interface CoLeaderFieldProps { value: mentionableDataType[]; @@ -27,8 +28,20 @@ interface mentionableDataType { userprofileImage?: string; } +interface metionUserType { + userId: number; + orgId: number; + userName: string; + recentPart: string; + recentGeneration: number; + profileImageUrl: string; +} + const CoLeader = ({ value: coLeaders = [], onChange, error }: CoLeaderFieldProps) => { + const { data: user } = useQueryMyProfile(); const { data: mentionUserList } = useQueryGetMentionUsers(); + //API 연결에서 타입을 지정해두지 않았기 때문에 any 이용 + const filteredMeList = mentionUserList?.filter((mentionUser: metionUserType) => mentionUser.userId !== user?.id); const handleUserSelect = (user: mentionableDataType) => { if (coLeaders.length < 3 && !coLeaders.some(leader => leader.id === user.id)) { @@ -87,7 +100,7 @@ const CoLeader = ({ value: coLeaders = [], onChange, error }: CoLeaderFieldProps e.stopPropagation()}> e.stopPropagation()}>