From 702c576540088a11f9b365f7c5af32170f63b7be Mon Sep 17 00:00:00 2001 From: choi Date: Thu, 26 Dec 2024 17:27:56 +0900 Subject: [PATCH] =?UTF-8?q?15=EC=A3=BC=EC=B0=A8=20=EC=9E=91=EC=97=85=20?= =?UTF-8?q?=EC=A2=85=EB=A3=8C:=20=EC=95=A8=EB=B2=94,=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=ED=95=84=20api=20=EC=97=B0=EA=B2=B0=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/modal/album-modal.tsx | 2 +- src/components/modal/confirm-modal.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modal/album-modal.tsx b/src/components/modal/album-modal.tsx index b48f0d5..23c8969 100644 --- a/src/components/modal/album-modal.tsx +++ b/src/components/modal/album-modal.tsx @@ -124,8 +124,8 @@ const AlbumModal = () => { toast.success("앨범이 생성되었습니다!"); reset(); - albumModal.onClose(); router.refresh(); + albumModal.onClose(); } catch (error) { if (axios.isAxiosError(error) && error.response?.data) { const errorData = error.response.data; diff --git a/src/components/modal/confirm-modal.tsx b/src/components/modal/confirm-modal.tsx index 3e2b5c3..f2330e5 100644 --- a/src/components/modal/confirm-modal.tsx +++ b/src/components/modal/confirm-modal.tsx @@ -45,7 +45,7 @@ const ConfirmModal = () => { } toast.success("성공적으로 앨범을 삭제하였습니다."); - router.refresh(); + router.back(); confirmModal.onClose(); return; }