Просмотр исходного кода

Merge branch 'feat/growi-bot' into fix/5782-6155-fix-response_metadata

itizawa 4 лет назад
Родитель
Сommit
2ca177e435

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

@@ -8,7 +8,7 @@ const CustomBotWithoutProxyConnectionStatus = (props) => {
   const connectionStatusValues = Object.values(connectionStatuses); // type: ConnectionStatus[]
 
   const totalCount = connectionStatusValues.length;
-  const errorCount = connectionStatusValues.filter(connectionStatus => connectionStatusValues.error != null).length;
+  const errorCount = connectionStatusValues.filter(connectionStatusValue => connectionStatusValue.error != null).length;
 
   let workspaceName;
   if (totalCount > 0) {

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

@@ -27,8 +27,6 @@ const CustomBotWithoutProxySettings = (props) => {
   };
 
   const testConnection = async() => {
-    setConnectionErrorCode(null);
-    setConnectionMessage(null);
     try {
       await appContainer.apiv3.post('/slack-integration-settings/without-proxy/test', { channel: testChannel });
       setConnectionMessage('Send the message to slack work space.');