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

Critical: Fix type definition mismatch for newApplications field

Make newApplications optional in OrganizationReportSummary type definition
to match the validation logic. This resolves the type safety violation where
compile-time type checking required the field but runtime validation treated
it as optional.

The field is optional because legacy encrypted data predates this field's
introduction, and making it required would break decryption of existing data.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2025-10-30 05:18:31 +00:00
parent e8b99d99b8
commit 293a2e131d

View File

@@ -55,7 +55,8 @@ export type OrganizationReportSummary = {
totalCriticalMemberCount: number;
totalCriticalAtRiskMemberCount: number;
totalCriticalAtRiskApplicationCount: number;
newApplications: string[];
/** Optional for backward compatibility - legacy encrypted data predates this field */
newApplications?: string[];
};
/**