|
|
@@ -49,9 +49,10 @@ const SlackIntegration = (props) => {
|
|
|
}
|
|
|
}, [appContainer.apiv3]);
|
|
|
|
|
|
- const resetSettings = async() => {
|
|
|
+ const resetWithOutSettings = async() => {
|
|
|
try {
|
|
|
- await appContainer.apiv3.put('/slack-integration-settings/bot-type', { currentBotType });
|
|
|
+ await appContainer.apiv3.delete('/slack-integration-settings/bot-type');
|
|
|
+ await appContainer.apiv3.put('/slack-integration-settings/bot-type', { currentBotType: 'customBotWithoutProxy' });
|
|
|
fetchSlackIntegrationData();
|
|
|
toastSuccess(t('admin:slack_integration.bot_reset_successful'));
|
|
|
}
|
|
|
@@ -118,7 +119,7 @@ const SlackIntegration = (props) => {
|
|
|
onSetSlackSigningSecret={setSlackSigningSecret}
|
|
|
onSetSlackBotToken={setSlackBotToken}
|
|
|
onSetIsSendTestMessage={setIsSendTestMessage}
|
|
|
- onResetSettings={resetSettings}
|
|
|
+ onResetSettings={resetWithOutSettings}
|
|
|
/>
|
|
|
);
|
|
|
break;
|