|
|
@@ -36,6 +36,7 @@ const SlackIntegration = (props) => {
|
|
|
try {
|
|
|
const res = await appContainer.apiv3.get('/slack-integration/custom-bot-without-proxy/slack-workspace-name');
|
|
|
setSlackWSNameInWithoutProxy(res.data.slackWorkSpaceName);
|
|
|
+ isSlackScopeSet(true);
|
|
|
}
|
|
|
catch (err) {
|
|
|
if (err[0].message === 'missing_scope') {
|
|
|
@@ -46,7 +47,7 @@ const SlackIntegration = (props) => {
|
|
|
toastError(err);
|
|
|
}
|
|
|
}
|
|
|
- }, [appContainer.apiv3, isConnectedToSlack, t]);
|
|
|
+ }, [appContainer.apiv3, isConnectedToSlack, isSlackScopeSet, t]);
|
|
|
|
|
|
const fetchSlackIntegrationData = useCallback(async() => {
|
|
|
try {
|