-
Notifications
You must be signed in to change notification settings - Fork 7
fix: 공고 수정시 발생한 버그에 따른 질문 key값 수정 #1031
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
Conversation
1739779664.155759 |
@@ -49,20 +49,20 @@ function getQuestions(data: QuestionData[] | undefined): Question[] { | |||
export default function useApplyManagement({ applyFormId }: UseApplyManagementProps): UseApplyManagementReturn { | |||
const { data, isLoading } = applyQueries.useGetApplyForm({ applyFormId: applyFormId ?? '' }); | |||
const [applyState, setApplyState] = useState(getQuestions(data)); | |||
const [uniqueId, setUniqueId] = useState(DEFAULT_QUESTIONS.length); | |||
const [uniqueId, setUniqueId] = useState(applyState[applyState.length - 1]?.id || DEFAULT_QUESTIONS.length); |
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.
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.
요고 id값에 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.
일단 오늘 까지 리팩터링해서 올려볼게용
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.
아하 기존공고가 문제가되는군요! 수정했슴니당~
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.
굿굿
작업 내용