소스 검색

clean code

itizawa 5 년 전
부모
커밋
8a1a7d3122
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

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

@@ -83,14 +83,10 @@ 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) {