diff --git a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-orchestrator.service.ts b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-orchestrator.service.ts index 1c54917f132..f22be89ac9b 100644 --- a/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-orchestrator.service.ts +++ b/bitwarden_license/bit-common/src/dirt/reports/risk-insights/services/domain/risk-insights-orchestrator.service.ts @@ -343,10 +343,11 @@ export class RiskInsightsOrchestratorService { loading: false, error: null, data: result ?? null, + organizationId, }; }), - catchError(() => of({ loading: false, error: "Failed to fetch report", data: null })), - startWith({ loading: true, error: null, data: null }), + catchError(() => of({ loading: false, error: "Failed to fetch report", data: null, organizationId })), + startWith({ loading: true, error: null, data: null, organizationId }), ); } @@ -407,12 +408,13 @@ export class RiskInsightsOrchestratorService { creationDate: new Date(), contentEncryptionKey, }, + organizationId, }; }), catchError((): Observable => { - return of({ loading: false, error: "Failed to generate or save report", data: null }); + return of({ loading: false, error: "Failed to generate or save report", data: null, organizationId }); }), - startWith({ loading: true, error: null, data: null }), + startWith({ loading: true, error: null, data: null, organizationId }), ); }