Steven Fukase 5 лет назад
Родитель
Сommit
3b2f946b8c
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

+ 2 - 1
src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

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