Skip to content

Commit

Permalink
Fix : 보고서 작성 시 마스킹으로 인해 친구등록이 되지 않는 버그 수정 (sid -> id 를 보내도록 설정)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohinhyuk committed Sep 18, 2023
1 parent ce96587 commit 52795c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions histudy-front/src/components/Post/PostMember.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function PostMember({ control, setValue, getValues }) {
<FormGroup>
{teamMember?.map((tm, index) => (
<FormControlLabel
key={tm.sid}
key={tm.id}
control={
<Controller
name="participants"
Expand All @@ -39,8 +39,8 @@ export default function PostMember({ control, setValue, getValues }) {
render={({ field }) => (
<Checkbox
{...field}
value={tm.sid}
checked={field.value.includes(tm.sid)}
value={tm.id}
checked={field.value.includes(tm.id)}
onChange={handleCheckboxChange}
/>
)}
Expand Down
2 changes: 2 additions & 0 deletions histudy-front/src/pages/Manager/ManageGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const SizedBox = styled(Box)({
});

export default function ManageGroup() {


const [groupData, setGroupData] = useState();
const [ungroupData, setUngroupData] = useState();
const setGroupAutoCompleteState = useSetRecoilState(groupAutoCompleteState);
Expand Down
2 changes: 1 addition & 1 deletion histudy-front/src/pages/Post/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()) : [],
Expand Down

0 comments on commit 52795c3

Please sign in to comment.