2
0
Эх сурвалжийг харах

Merge pull request #3887 from weseek/fix/6272-6306-fetch-after-cange-bot-type

Fix/6272 6306 fetch after cange bot type
itizawa 4 жил өмнө
parent
commit
08b1ad94d2

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

@@ -83,14 +83,11 @@ 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) {
       toastError(err);