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

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

@@ -29,6 +29,16 @@ const CustomBotWithoutProxySettings = (props) => {
     }
   };
 
+  const fetchSiteName = async() => {
+    try {
+      await adminAppContainer.retrieveAppSettingsData()
+      setSiteName(adminAppContainer.state.title);
+    }
+    catch (err) {
+      toastError(err);
+    }
+  };
+
   useEffect(() => {
     setSlackWSNameInWithoutProxy(null);
     if (props.isSetupSlackBot) {