Skip to content

Commit

Permalink
Fix: 임시저장후 조회한뒤 다시 제출하면 saved되는 버그 픽스 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
KimKyuHoi authored Aug 21, 2024
1 parent 8e85049 commit ab75eb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/apply/components/ApplySaveForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const ApplySaveForm = ({ SaveData }: ApplySaveFormProps) => {
};
const saveFormData = {
...formData,
applicationStatus: (formData.applicationStatus = 'TEMPORAL'),
answers:
formData.answers?.map((answer, index) => ({
questionNumber: index,
Expand All @@ -131,6 +132,7 @@ const ApplySaveForm = ({ SaveData }: ApplySaveFormProps) => {
// console.log(finalFormData);
} else if (submitType === 'save') {
// submitApplication(saveFormData);
// console.log(saveFormData);
saveApplication(saveFormData);
}
}
Expand Down

0 comments on commit ab75eb3

Please sign in to comment.