Skip to content

Commit 4c9e0fc

Browse files
committed
chore: Update redirect URL after deleting series in SeriesPosts.tsx
1 parent f9d2c37 commit 4c9e0fc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/containers/velog/SeriesPosts.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,17 @@ const SeriesPosts: React.FC<SeriesPostsProps> = ({ username, urlSlug }) => {
5959
id: data?.series?.id,
6060
},
6161
});
62+
6263
await client.resetStore();
63-
toast.success('시리즈가 삭제되었습니다.');
64-
// history.replace(`/@${username}/series/`);
65-
window.location.href = `${process.env
64+
65+
const redirect = `${process.env
6666
.REACT_APP_CLIENT_V3_HOST!}/@${username}/series`;
67+
window.location.href = redirect;
6768
} catch (e) {
6869
toast.error('시리즈 삭제 실패');
6970
}
7071
};
72+
7173
const onCancelRemove = () => {
7274
setAskRemove(false);
7375
};

0 commit comments

Comments
 (0)