Jelajahi Sumber

deleted unused var

Steven Fukase 5 tahun lalu
induk
melakukan
4750492ce2

+ 0 - 13
src/client/js/components/Admin/SlackIntegration/SlackIntegration.jsx

@@ -31,19 +31,6 @@ const SlackIntegration = (props) => {
     fetchData();
     fetchData();
   }, [fetchData]);
   }, [fetchData]);
 
 
-  const resetBotType = async() => {
-    try {
-      await appContainer.apiv3.put('slack-integration/custom-bot-without-proxy', {
-        slackSigningSecret: '',
-        slackBotToken: '',
-        botType: selectedBotType,
-      });
-    }
-    catch (err) {
-      toastError(err);
-    }
-  };
-
   const handleBotTypeSelect = (clickedBotType) => {
   const handleBotTypeSelect = (clickedBotType) => {
     if (clickedBotType === currentBotType) {
     if (clickedBotType === currentBotType) {
       return;
       return;