Shun Miyazawa пре 5 година
родитељ
комит
11fe4aeec8

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

@@ -55,10 +55,6 @@ const CustomBotWithoutProxySettings = (props) => {
     fetchData();
   }, [fetchData]);
 
-  const reload  = (() => {
-    fetchSlackWorkSpaceName();
-  })
-
   return (
     <>
 
@@ -80,7 +76,7 @@ const CustomBotWithoutProxySettings = (props) => {
           <div className="row">
             <h5 className="card-title font-weight-bold mt-3 ml-4 col">GROWI App</h5>
             <div className="pull-right mt-3 mr-3">
-              <a className="icon-fw fa fa-repeat fa-2x" onClick={ reload }></a>
+              <a className="icon-fw fa fa-repeat fa-2x" onClick={ fetchSlackWorkSpaceName }></a>
             </div>
           </div>
           <div className="card-body p-4 mb-5 text-center"> { slackWSNameInWithoutProxy && <a className="btn btn-primary">{ slackWSNameInWithoutProxy }</a> }