-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/#302 커리큘럼 관련 api 수정 #316
The head ref may contain hidden characters: "feature/#302_\uCEE4\uB9AC\uD058\uB7FC-\uAD00\uB828-api-\uC218\uC815"
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.
원래 맡았던 파트가 아니라 코드 이해부터 해야해서 힘들었을 것 같은데 수고많았습니다!!
|
||
const editCurriculumRef = React.useRef<HTMLTextAreaElement>(); | ||
// const getCurriculumItems = useGetFetchWithToken(getCurriculum, [Number(studyId)]); |
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.
주석은 삭제해주세요~!
@@ -24,8 +24,10 @@ const CurriculumModal = ({ isOpen, onClose, originCurriculums }: CurriculumModal | |||
|
|||
const [newCurriculum, setNewCurriculum] = useState<string>(''); | |||
const [newCurriculumId, setNewCurriculumId] = useState<number>(1); | |||
const [firstNewCurriculumId, setFirstNewCurriculumId] = useState<number>(1); |
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.
밑의 139번째 줄을 보니 새로운 기본 값이 0인 것 같습니다.
setFirstNewCurriculumId(originCurriculums?.at(-1)?.id ?? 0);
firstNewCurriculumI의 초기값도 1보다는 0인 것이 좋아보입니다!
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.
관련 이슈
작업 요약
작업 상세 설명
리뷰 요구 사항
미리 보기