Skip to content

Commit

Permalink
refacor: 카드 필터링 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperdad committed Jul 19, 2024
1 parent 6342889 commit af88995
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/pages/modifyManage/ModifyManage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -135,8 +142,8 @@ const ModifyManage = () => {
ticketPrice,
totalScheduleCount,
scheduleList,
castList,
staffList,
castList: filteredCastList,
staffList: filteredStaffList,
bankName: (!!bankName ? bankName : "NONE") as BANK_TYPE,
isBookerExist,
accountHolder,
Expand Down

0 comments on commit af88995

Please sign in to comment.