فهرست منبع

fix brows error

zahmis 4 سال پیش
والد
کامیت
272a77fcec

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

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

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

@@ -77,7 +77,7 @@ const CustomBotWithoutProxySettingsAccordion = ({
 
 
 
 
   let value = '';
   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;
     value = connectionMessage;
   }
   }
   else {
   else {