From af889957d20db70570b06c4331d98d74b33d1c6b Mon Sep 17 00:00:00 2001 From: jerry Date: Fri, 19 Jul 2024 14:02:08 +0900 Subject: [PATCH] =?UTF-8?q?refacor:=20=EC=B9=B4=EB=93=9C=20=ED=95=84?= =?UTF-8?q?=ED=84=B0=EB=A7=81=20=EB=A1=9C=EC=A7=81=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/modifyManage/ModifyManage.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pages/modifyManage/ModifyManage.tsx b/src/pages/modifyManage/ModifyManage.tsx index ab9d6afd..b37f4462 100644 --- a/src/pages/modifyManage/ModifyManage.tsx +++ b/src/pages/modifyManage/ModifyManage.tsx @@ -119,6 +119,13 @@ const ModifyManage = () => { //여기서 공연 수정하기 PUT 요청 보내야함 const handleComplete = async () => { + const filteredCastList = castList.filter( + (cast) => cast.castName || cast.castRole || cast.castPhoto + ); + const filteredStaffList = staffList.filter( + (staff) => staff.staffName || staff.staffRole || staff.staffPhoto + ); + const formData = { performanceId: Number(performanceId), performanceTitle, @@ -135,8 +142,8 @@ const ModifyManage = () => { ticketPrice, totalScheduleCount, scheduleList, - castList, - staffList, + castList: filteredCastList, + staffList: filteredStaffList, bankName: (!!bankName ? bankName : "NONE") as BANK_TYPE, isBookerExist, accountHolder,