From 09ac1c6febf666189fff0c9a90e608e8b99bf643 Mon Sep 17 00:00:00 2001 From: voommen-livefront Date: Fri, 9 May 2025 13:44:17 -0500 Subject: [PATCH] PM-20577 fixed errors --- .../services/risk-insights-api.service.ts | 2 +- .../access-intelligence/all-applications.component.ts | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-api.service.ts b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-api.service.ts index 25212ee0216..4589a5b1f85 100644 --- a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-api.service.ts +++ b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/risk-insights-api.service.ts @@ -38,7 +38,7 @@ export class RiskInsightsApiService { }); if (dbResponse instanceof Error) { - return from(null as Promise); + return null; } return from(dbResponse as Promise); } diff --git a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts index 465fa7ac128..93c50984f65 100644 --- a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts +++ b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/all-applications.component.ts @@ -89,7 +89,16 @@ export class AllApplicationsComponent implements OnInit { data: ApplicationHealthReportDetailWithCriticalFlag[]; organization: Organization; summary: ApplicationHealthReportSummary; - }>(null); + }>({ + data: [], + organization: new Organization(), + summary: { + totalMemberCount: 0, + totalAtRiskMemberCount: 0, + totalApplicationCount: 0, + totalAtRiskApplicationCount: 0, + }, + }); async ngOnInit() { this.isCriticalAppsFeatureEnabled = await this.configService.getFeatureFlag(