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

fix getting data from endpoint

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

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

@@ -46,11 +46,10 @@ const SlackIntegration = (props) => {
   const fetchSlackIntegrationData = useCallback(async() => {
     try {
       const response = await appContainer.apiv3.get('/slack-integration-settings');
-      const { currentBotType, customBotWithoutProxySettings } = response.data.slackBotSettingParams;
+      const { currentBotType, settings } = response.data;
       const {
         slackSigningSecret, slackBotToken, slackSigningSecretEnvVars, slackBotTokenEnvVars,
-      } = customBotWithoutProxySettings;
-
+      } = settings;
       setCurrentBotType(currentBotType);
       setSlackSigningSecret(slackSigningSecret);
       setSlackBotToken(slackBotToken);