From d632db583d478864b85342438dd9f2244d69cc59 Mon Sep 17 00:00:00 2001 From: Shim MunSeong Date: Wed, 14 Feb 2024 21:12:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8B=B0=EC=BC=93=20=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=20=ED=8E=98=EC=9D=B4=EC=A7=80=EC=97=90=EC=84=9C=20=ED=8B=B0?= =?UTF-8?q?=EC=BC=93=20=EC=82=AD=EC=A0=9C=20=EC=8B=9C=20=ED=8B=B0=EC=BC=93?= =?UTF-8?q?=20id=EC=9D=98=20=ED=83=80=EC=9E=85=20=EB=B6=88=EC=9D=BC?= =?UTF-8?q?=EC=B9=98=20=EA=B4=80=EB=A0=A8=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/pages/ShowTicketPage/ShowTicketPage.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/admin/src/pages/ShowTicketPage/ShowTicketPage.tsx b/apps/admin/src/pages/ShowTicketPage/ShowTicketPage.tsx index 05ce5cd5..dc761eb1 100644 --- a/apps/admin/src/pages/ShowTicketPage/ShowTicketPage.tsx +++ b/apps/admin/src/pages/ShowTicketPage/ShowTicketPage.tsx @@ -120,6 +120,8 @@ const ShowTicketPage = () => { toast.success('일반 티켓을 생성했습니다.'); }} onDeleteTicket={async (ticket) => { + if (ticket.id === undefined) return; + const result = await confirm( '삭제한 티켓은 다시 생성할 수 없어요. 삭제하시겠어요?', { @@ -165,6 +167,8 @@ const ShowTicketPage = () => { toast.success('초청 티켓을 생성했습니다.'); }} onDeleteTicket={async (ticket) => { + if (ticket.id === undefined) return; + const result = await confirm( '삭제한 티켓은 다시 생성할 수 없어요. 삭제하시겠어요?', {