1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 12:40:26 +00:00

PM-20577 fixed errors

This commit is contained in:
voommen-livefront
2025-05-09 13:44:17 -05:00
parent 585c7b0474
commit 09ac1c6feb
2 changed files with 11 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ export class RiskInsightsApiService {
});
if (dbResponse instanceof Error) {
return from(null as Promise<GetRiskInsightsReportResponse>);
return null;
}
return from(dbResponse as Promise<GetRiskInsightsReportResponse>);
}

View File

@@ -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(