-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] 일정 추가/수정 시 카테고리 선택 목록을 편집가능 목록으로 변경한다. #739
[feat] 일정 추가/수정 시 카테고리 선택 목록을 편집가능 목록으로 변경한다. #739
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
나인 아침부터 고생하셨어요 🌈
궁금한 거 하나 코멘트로 남겼으니 이것만 확인 부탁드릴게요~!
categoryId: scheduleInfo.categoryId, | ||
}); | ||
|
||
const { data: editableCategoryGetResponse } = useGetEditableCategories({ enabled: isSuccess }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
single category 조회가 성공한 후에 요청하는 이유가 뭔가요?! 😮
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 아까 디스코드에서 말씀드릭 부분떄문에 조금 헷갈렸떤 것 같아요.
동기 에러인줄 알았었는데.. ㅠㅠ 다시돌리겠습니다
- 구글 카테고리도 편집가능한 카테고리로 들어오더라구요? 구글 일정들은 수정 불가능하니깐 필터링 진행했어요.
🔨 1c63cbe
35cb362
to
1c63cbe
Compare
1c63cbe
to
a2680b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
하나만 더 확인해주세요 🙃
(scheduleInfo.categoryType === CATEGORY_TYPE.NORMAL || | ||
scheduleInfo.categoryType === CATEGORY_TYPE.PERSONAL) && | ||
user.id === categoryGetResponse?.data.creator.id; | ||
const canEditSchedule = editableCategoryGetResponse?.data.find( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
canEditSchedule
이 boolean 값으로 사용되고 있으니 some
을 사용하는 건 어떨까요~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아맞네요 좋아요
6576704
to
808394b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다 조와요~~~!
근데 수정한 코드를 강제 푸쉬로 반영하는 이유도 궁금하네요 🤔
로그를 깔끔하게 가져가고 싶어서?! 인가요?
커밋이 이정도로 간단하면 돌려서 하나로 합쳐버리자고 생각하고 한 번 해봤는데 더 귀찮네요 ㅋㅋ 다음엔 그냥 하려구요! |
808394b
to
5a6b66c
Compare
[feat] PR을 등록한다.
작업 내용
일정 추가/수정 시 카테고리 선택 목록을 편집가능 목록으로 변경한다.
Closes #737