Steven Fukase пре 5 година
родитељ
комит
52a247e17d
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

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

@@ -36,9 +36,9 @@ const SlackIntegration = (props) => {
       const res = await appContainer.apiv3.put('slack-integration/custom-bot-without-proxy', {
       const res = await appContainer.apiv3.put('slack-integration/custom-bot-without-proxy', {
         slackSigningSecret: '',
         slackSigningSecret: '',
         slackBotToken: '',
         slackBotToken: '',
-        botType: '',
+        botType: selectedBotType,
       });
       });
-      setCurrentBotType(res.data.CustomBotWithProxySettingParams.slackBotType);
+      setCurrentBotType(res.data.customBotWithoutProxySettingParams.slackBotType);
       setSelectedBotType(null);
       setSelectedBotType(null);
       toastSuccess(t('admin:slack_integration.bot_reset_successful'));
       toastSuccess(t('admin:slack_integration.bot_reset_successful'));
     }
     }