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