Selaa lähdekoodia

add isRequired

zahmis 4 vuotta sitten
vanhempi
sitoutus
f24b0a031f

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

@@ -113,7 +113,7 @@ CustomBotWithProxyIntegrationCard.propTypes = {
   growiApps: PropTypes.array.isRequired,
   growiApps: PropTypes.array.isRequired,
   slackWorkSpaces: PropTypes.array,
   slackWorkSpaces: PropTypes.array,
   isSlackScopeSet: PropTypes.bool,
   isSlackScopeSet: PropTypes.bool,
-  workspaceNames: PropTypes.array,
+  workspaceNames: PropTypes.array.isRequired,
 };
 };
 
 
 export default CustomBotWithProxyIntegrationCard;
 export default CustomBotWithProxyIntegrationCard;

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

@@ -23,6 +23,7 @@ const CustomBotWithProxySettings = (props) => {
   const workspaceNames = workspaceNameObjects.map((w) => {
   const workspaceNames = workspaceNameObjects.map((w) => {
     return w.workspaceName;
     return w.workspaceName;
   });
   });
+  console.log(workspaceNames);
 
 
   useEffect(() => {
   useEffect(() => {
     if (proxyServerUri != null) {
     if (proxyServerUri != null) {
@@ -97,8 +98,6 @@ const CustomBotWithProxySettings = (props) => {
             { name: 'wsName2', active: false },
             { name: 'wsName2', active: false },
           ]
           ]
         }
         }
-        isSlackScopeSet
-        connectionStatuses={connectionStatuses}
         workspaceNames={workspaceNames}
         workspaceNames={workspaceNames}
       />
       />