diff --git a/src/app/core/services/common/integrations.service.ts b/src/app/core/services/common/integrations.service.ts index 829ac5c0c..568ca79c8 100644 --- a/src/app/core/services/common/integrations.service.ts +++ b/src/app/core/services/common/integrations.service.ts @@ -13,10 +13,10 @@ export class IntegrationsService { private apiService: ApiService, private helper: HelperService ) { - helper.setBaseApiURL(AppUrl.INTEGRATION); } getIntegrations(): Observable { + this.helper.setBaseApiURL(AppUrl.INTEGRATION); return this.apiService.get(`/integrations/`, {}); } } diff --git a/src/app/integrations/landing-v2/landing-v2.component.ts b/src/app/integrations/landing-v2/landing-v2.component.ts index e55f4d16f..9a5062d93 100644 --- a/src/app/integrations/landing-v2/landing-v2.component.ts +++ b/src/app/integrations/landing-v2/landing-v2.component.ts @@ -166,7 +166,7 @@ export class LandingV2Component implements OnInit { } isAppConnected(appKey: IntegrationAppKey) { - return this.connectedApps.includes(appKey); + return this.connectedApps?.includes(appKey); } openAccountingIntegrationApp(accountingIntegrationApp: AccountingIntegrationApp): void {