Skip to content

Commit

Permalink
fix: 공연 등록 시 클릭 횟수에 따라 submit 이벤트가 발생하는 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Puterism committed Feb 15, 2024
1 parent d69c055 commit 2331a9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/admin/src/pages/ShowAddPage/ShowAddPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const ShowAddPage = ({ step }: ShowAddPageProps) => {
};

const onSubmitTicketForm: SubmitHandler<ShowTicketFormInputs> = async () => {
if (uploadShowImageMutation.status === 'loading' || addShowMutation.status === 'loading') return

// 공연 이미지 업로드
const showImageInfo = await uploadShowImageMutation.mutateAsync(imageFiles);

Expand Down

0 comments on commit 2331a9a

Please sign in to comment.