1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 04:03:29 +00:00

PM-20578 fix build errors and update variable types

This commit is contained in:
voommen-livefront
2025-06-24 13:13:10 -05:00
parent ae4ab8a606
commit 02e0eb699d
3 changed files with 6 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ export class RiskInsightsDataService {
private errorSubject = new BehaviorSubject<string | null>(null);
error$ = this.errorSubject.asObservable();
private dataLastUpdatedSubject = new BehaviorSubject<Date | null>(null);
private dataLastUpdatedSubject = new BehaviorSubject<Date>(new Date());
dataLastUpdated$ = this.dataLastUpdatedSubject.asObservable();
private cipherViewsForOrganizationSubject = new BehaviorSubject<CipherView[]>([]);

View File

@@ -180,9 +180,12 @@ export class AllApplicationsComponent implements OnInit {
),
takeUntilDestroyed(this.destroyRef),
)
.subscribe(({ report, summary, criticalApps, isReportFromArchive, organization }) => {
.subscribe(({ report, summary, isReportFromArchive, organization }) => {
if (report) {
this.dataSource.data = report;
}
if (summary) {
this.applicationSummary = summary;
}

View File

@@ -124,7 +124,7 @@ export class RiskInsightsComponent implements OnInit {
if (applications) {
this.appsCount = applications.length;
this.criticalAppsCount = criticalApps.length;
this.dataLastUpdated = new Date(dataLastUpdated);
this.dataLastUpdated = dataLastUpdated;
}
});
}