itizawa 4 سال پیش
والد
کامیت
8a1a7d3122
1فایلهای تغییر یافته به همراه1 افزوده شده و 5 حذف شده
  1. 1 5
      src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

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

@@ -83,14 +83,10 @@ const SlackIntegration = (props) => {
 
   const changeCurrentBotSettings = async(botType) => {
     try {
-      const res = await appContainer.apiv3.put('/slack-integration-settings/bot-type', {
+      await appContainer.apiv3.put('/slack-integration-settings/bot-type', {
         currentBotType: botType,
       });
-      setCurrentBotType(res.data.slackBotTypeParam.slackBotType);
       setSelectedBotType(null);
-      setSlackSigningSecret(null);
-      setSlackBotToken(null);
-      setConnectionStatuses({});
       fetchSlackIntegrationData();
     }
     catch (err) {