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:
@@ -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[]>([]);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user