فهرست منبع

add fetchSlackWorkSpaceName in case of connection

zahmis 5 سال پیش
والد
کامیت
68f21921c1
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      src/client/js/components/Admin/SlackIntegration/CustomBotWithoutProxySettingsAccordion.jsx

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

@@ -39,10 +39,9 @@ const CustomBotWithoutProxySettingsAccordion = ({
         currentBotType,
       });
 
-      fetchSlackWorkSpaceName();
-
       if (isConnectedToSlack) {
         onSetIsRegisterSlackCredentials(true);
+        fetchSlackWorkSpaceName();
       }
       else {
         onSetIsRegisterSlackCredentials(false);