Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
group-edit의 과정에서 발생하는 여러 문제들을 해결했습니다.
특히 그 중에서도 다른 카테고리를 변경한 후에 스터디명 중복체크를 하는 경우 새로고침에 의해 바꾼 값들이 저장되지 않는 문제를 해결했습니다.
작은 수정들
group-create-submit
이던 것을group-edit-submit
으로 수정하였습니다.location.href = 'http://localhost:3000/mypage/group-edit';
editForm
내부의 각 select tag가 바뀌는 경우, disabled 처리되었던 수정완료 버튼을 disabled = false;로 바꾸어주었습니다.따라서, 스터디 명 중복체크를 해야만 수정완료가 가능했던 issue를 해결했습니다.
큰 수정
URLSearchParams
를 통해서form
을 submit하여 구현하던 강퇴, 중복체크, 스터디 수정의 기능을 모두fetch
와then
을 활용하여 처리하도록 했습니다.이를 통해서 새로고침 없이 기능들이 동작하도록 했고, 강퇴 이후와 수정완료시에는 alert과 함께 mypage로 이동되도록 수정하였습니다.