Skip to content

Commit

Permalink
feat: 공연 생성 페이지 Promise 미사용 부분 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Oct 6, 2024
1 parent 88ee1c2 commit 3966ddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/admin/src/pages/ShowAddPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ const ShowAddPage = ({ step }: ShowAddPageProps) => {
<ShowCastInfoFormContent
onSave={(showCastInfoFormInput: TempShowCastInfoFormInput) => {
setShowCastInfo((prev) => [...prev, showCastInfoFormInput]);
return new Promise((reslve) => reslve());
}}
/>
{showCastInfo.map((info, index) => (
Expand All @@ -180,11 +181,13 @@ const ShowAddPage = ({ step }: ShowAddPageProps) => {
index === currentIndex ? showCastInfoFormInput : prevCastInfo,
),
);
return new Promise((reslve) => reslve());
}}
onDelete={() => {
setShowCastInfo((prev) =>
prev.filter((_, currentIndex) => index !== currentIndex),
);
return new Promise((reslve) => reslve());
}}
/>
))}
Expand Down

0 comments on commit 3966ddc

Please sign in to comment.