zahmis 4 лет назад
Родитель
Сommit
272a77fcec

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

@@ -15,7 +15,7 @@ const CustomBotWithoutProxySettings = (props) => {
   const [siteName, setSiteName] = useState('');
   const [isDeleteConfirmModalShown, setIsDeleteConfirmModalShown] = useState(false);
   const [isIntegrationSuccess, setIsIntegrationSuccess] = useState(false);
-  const [connectionMessage, setConnectionMessage] = useState(null);
+  const [connectionMessage, setConnectionMessage] = useState('');
   const [connectionErrorCode, setConnectionErrorCode] = useState(null);
   const [testChannel, setTestChannel] = useState('');
 

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

@@ -77,7 +77,7 @@ const CustomBotWithoutProxySettingsAccordion = ({
 
 
   let value = '';
-  if (connectionMessage === 'Send the message to slack work space.' || connectionMessage == null) {
+  if (connectionMessage === 'Send the message to slack work space.' || connectionMessage === '') {
     value = connectionMessage;
   }
   else {