[SZ-551] 투데이에서 인박스로 투두 안 옮겨지는 문제 수정 #77
Merged
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.
What is this PR?
투데이에서 투두 모달에서 '인박스에 넣기'를 눌러도 투두가 인박스로 들어가지 않는 문제를 수정했습니다.
Changes
원인은 투두의 Date를 null로 설정할 때 categoryId 값도 null 이었기 때문이었는데, 알고보니 useContext()를 통해 현재는 사용하지 않는 selectedCategory 라는 변수를 카테고리 값으로 참고하고 있었기 때문이었습니다.
이에 selectedCategory를 참조하는 대신, categoryId를 직접 prop으로 전달해서 문제를 해결했습니다.
Screenshots
Test Checklist
😎github action에서 CI / 코드 품질 검사 (pull_request) 실패하면 details 눌러서 수정할 부분 보고 고치기
😎앱 테스트
안드로이드 👉 APP_MODE=development npm run e2e-test:android
iOS 👉 손으로 테스트 ㅠㅠ
기능체크리스트