itizawa 5 лет назад
Родитель
Сommit
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) => {
   const changeCurrentBotSettings = async(botType) => {
     try {
     try {
-      const res = await appContainer.apiv3.put('/slack-integration-settings/bot-type', {
+      await appContainer.apiv3.put('/slack-integration-settings/bot-type', {
         currentBotType: botType,
         currentBotType: botType,
       });
       });
-      setCurrentBotType(res.data.slackBotTypeParam.slackBotType);
       setSelectedBotType(null);
       setSelectedBotType(null);
-      setSlackSigningSecret(null);
-      setSlackBotToken(null);
-      setConnectionStatuses({});
       fetchSlackIntegrationData();
       fetchSlackIntegrationData();
     }
     }
     catch (err) {
     catch (err) {