File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
backend/danswer/danswerbot/slack Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,9 @@ def _manage_clients_per_tenant(
197
197
return
198
198
199
199
tokens_exist = tenant_bot_pair in self .slack_bot_tokens
200
- tokens_changed = slack_bot_tokens != self .slack_bot_tokens [tenant_bot_pair ]
200
+ tokens_changed = (
201
+ tokens_exist and slack_bot_tokens != self .slack_bot_tokens [tenant_bot_pair ]
202
+ )
201
203
if not tokens_exist or tokens_changed :
202
204
if tokens_exist :
203
205
logger .info (
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export const SlackTokensForm = ({
51
51
: "Successfully created Slack Bot!" ,
52
52
type : "success" ,
53
53
} ) ;
54
- router . push ( `/admin/bots/${ botId } }` ) ;
54
+ router . push ( `/admin/bots/${ encodeURIComponent ( botId ) } ` ) ;
55
55
} else {
56
56
const responseJson = await response . json ( ) ;
57
57
const errorMsg = responseJson . detail || responseJson . message ;
You can’t perform that action at this time.
0 commit comments