1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-05 19:23:19 +00:00

[PM-26676] Add organizationId to ReportState interface

Add optional organizationId field to ReportState to track which
organization the state belongs to. This enables the scan operator
to detect organization changes and handle them appropriately.

Part of fixing the conflict between:
- PM-27291 (preserve critical flags during report generation)
- PM-26676 (clear data when switching organizations)

The organizationId field allows us to distinguish between:
1. Null data from loading states (same org) - preserve critical flags
2. Null data from org switches - clear old org data
This commit is contained in:
Claude
2025-10-30 00:55:57 +00:00
parent 08dc28f309
commit c58a44d96c

View File

@@ -112,6 +112,7 @@ export interface ReportState {
loading: boolean;
error: string | null;
data: RiskInsightsData | null;
organizationId?: string;
}
// TODO Make Versioned models for structure changes