From 7e5b1964a51aa3c86cd87ba45a8474ed0f8ddd38 Mon Sep 17 00:00:00 2001 From: voommen-livefront Date: Wed, 5 Nov 2025 11:52:25 -0600 Subject: [PATCH] PM-27739 update component to remove FIXME --- .../critical-applications.component.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/critical-applications/critical-applications.component.ts b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/critical-applications/critical-applications.component.ts index 90aeed697ae..d84346be0b3 100644 --- a/bitwarden_license/bit-web/src/app/dirt/access-intelligence/critical-applications/critical-applications.component.ts +++ b/bitwarden_license/bit-web/src/app/dirt/access-intelligence/critical-applications/critical-applications.component.ts @@ -1,5 +1,3 @@ -// FIXME: Update this file to be type safe and remove this and next line -// @ts-strict-ignore import { Component, DestroyRef, inject, OnInit, ChangeDetectionStrategy } from "@angular/core"; import { takeUntilDestroyed } from "@angular/core/rxjs-interop"; import { FormControl } from "@angular/forms"; @@ -47,7 +45,7 @@ import { AccessIntelligenceSecurityTasksService } from "../shared/security-tasks export class CriticalApplicationsComponent implements OnInit { private destroyRef = inject(DestroyRef); protected enableRequestPasswordChange = false; - protected organizationId: OrganizationId; + protected organizationId: OrganizationId = "" as OrganizationId; noItemsIcon = Security; protected dataSource = new TableDataSource< @@ -82,7 +80,7 @@ export class CriticalApplicationsComponent implements OnInit { } const reportWithCiphers = (report?.reportData ?? []).map((app) => ({ ...app, - ciphers: ciphers.filter((cipher) => app.cipherIds.includes(cipher.id)), + ciphers: ciphers?.filter((cipher) => app.cipherIds.includes(cipher.id)) ?? [], })); return { ...report, reportData: reportWithCiphers }; }), @@ -93,7 +91,7 @@ export class CriticalApplicationsComponent implements OnInit { this.dataSource.data = criticalReport?.reportData ?? []; this.applicationSummary = criticalReport?.summaryData ?? createNewSummaryData(); this.enableRequestPasswordChange = - criticalReport?.summaryData?.totalAtRiskMemberCount > 0; + (criticalReport?.summaryData?.totalAtRiskMemberCount ?? 0) > 0; }, error: () => { this.dataSource.data = [];