From 33bf61eae80a3241f210ac57b44f2c8ec9d00e01 Mon Sep 17 00:00:00 2001 From: Viswas Date: Mon, 13 Jan 2025 18:33:16 +0530 Subject: [PATCH] fix: incorrect URL for `/integrations` call and rendering errors --- src/app/core/services/common/integrations.service.ts | 2 +- src/app/integrations/landing-v2/landing-v2.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {