diff --git a/frontend/app/components/Client/Integrations/Integrations.tsx b/frontend/app/components/Client/Integrations/Integrations.tsx index 31cd2e46d..b3cf4050f 100644 --- a/frontend/app/components/Client/Integrations/Integrations.tsx +++ b/frontend/app/components/Client/Integrations/Integrations.tsx @@ -112,6 +112,11 @@ function Integrations(props: Props) { const allIntegrations = filteredIntegrations.flatMap( (cat) => cat.integrations ); + + console.log( + allIntegrations, + integratedList + ) return ( <>
diff --git a/frontend/app/mstore/integrationsStore.ts b/frontend/app/mstore/integrationsStore.ts index fd3b7fc8c..ef0d22cde 100644 --- a/frontend/app/mstore/integrationsStore.ts +++ b/frontend/app/mstore/integrationsStore.ts @@ -43,7 +43,7 @@ class GenericIntegrationsStore { fetchIntegrations = async (siteId?: string) => { this.setLoading(true); try { - const { data } = await integrationsService.fetchList(siteId); + const { data } = await integrationsService.fetchList(undefined, siteId); this.setList(data); } catch (e) { console.log(e); diff --git a/frontend/app/services/IntegrationsService.ts b/frontend/app/services/IntegrationsService.ts index c39595a2a..b07e50df9 100644 --- a/frontend/app/services/IntegrationsService.ts +++ b/frontend/app/services/IntegrationsService.ts @@ -2,7 +2,7 @@ import BaseService from "./BaseService"; export default class IntegrationsService extends BaseService { fetchList = async (name?: string, siteId?: string) => { - const r = await this.client.get(`${siteId ? `/${siteId}` : ''}/integrations/${name}`) + const r = await this.client.get(`${siteId ? `/${siteId}` : ''}/integrations${name ? `/${name}` : ''}`) const data = await r.json() return data