chore: redirecting on update

This commit is contained in:
wonderlandpark 2021-05-06 22:59:57 +09:00
parent 5f98f594d2
commit 569b1f4a99

View File

@ -185,7 +185,7 @@ const ManageBotPage:NextPage<ManageBotProps> = ({ bot, user, csrfToken, theme })
}) }) }) })
if(res.code === 200) { if(res.code === 200) {
alert('성공적으로 수정했습니다.') alert('성공적으로 수정했습니다.')
setAdminModal(false) router.push(makeBotURL(bot))
} else { } else {
alert(res.message) alert(res.message)
setAdminModal(false) setAdminModal(false)