Przeglądaj źródła

currentBotType: botType

zahmis 4 lat temu
rodzic
commit
6bf54d900b

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

@@ -81,7 +81,7 @@ const SlackIntegration = (props) => {
   const changeCurrentBotSettings = async(botType) => {
     try {
       const res = await appContainer.apiv3.put('/slack-integration-settings/bot-type', {
-        currentBotType: selectedBotType || botType,
+        currentBotType: botType,
       });
       setCurrentBotType(res.data.slackBotTypeParam.slackBotType);
       setSelectedBotType(null);
@@ -107,7 +107,7 @@ const SlackIntegration = (props) => {
   };
 
   const changeCurrentBotSettingsHandler = async() => {
-    changeCurrentBotSettings();
+    changeCurrentBotSettings(selectedBotType);
     toastSuccess(t('admin:slack_integration.bot_reset_successful'));
   };