Skip to content

Commit

Permalink
fix : 피드 삭제 시 editMode false 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
keemsebin committed Jan 21, 2025
1 parent f88f08d commit 915d484
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/pages/admin/feed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function Index() {
취소
</button>
<button
onClick={openModal}
onClick={() => openModal()}
disabled={!selectedFeed}
className={`${
!selectedFeed && ' disabled:cursor-not-allowed'
Expand Down Expand Up @@ -154,7 +154,13 @@ export default function Index() {
closeButton={false}
closeModal={closeModal}
>
<AlertDialog onConfirm={() => handleDelete()} onCancel={closeModal} />
<AlertDialog
onConfirm={() => {
handleDelete();
setEditMode(false);
}}
onCancel={closeModal}
/>
</Modal>
</>
);
Expand Down

0 comments on commit 915d484

Please sign in to comment.