itizawa %!s(int64=4) %!d(string=hai) anos
pai
achega
8a1a7d3122

+ 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) {