update slack redirect + token missing check (#3179)

* update slack redirect + token missing check

* reset time
This commit is contained in:
pablodanswer
2024-11-20 13:42:54 -08:00
committed by GitHub
parent bf291d0c0a
commit 194dcb593d
2 changed files with 4 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ export const SlackTokensForm = ({
: "Successfully created Slack Bot!",
type: "success",
});
router.push(`/admin/bots/${botId}}`);
router.push(`/admin/bots/${encodeURIComponent(botId)}`);
} else {
const responseJson = await response.json();
const errorMsg = responseJson.detail || responseJson.message;