diff --git a/src/app/dars/dars-audit-view/dars-audit-view.component.ts b/src/app/dars/dars-audit-view/dars-audit-view.component.ts index ebce32ff1fe10aaf4e7b1dc64f324375288951ae..87a4e170ae129793cf031d37ba2aeb94c7031a4b 100644 --- a/src/app/dars/dars-audit-view/dars-audit-view.component.ts +++ b/src/app/dars/dars-audit-view/dars-audit-view.component.ts @@ -62,9 +62,10 @@ export class AuditViewComponent implements OnInit { this.metadata$ = combineLatest([ this.darsDegreeAuditReportId$, this.store.select(selectors.programMetadata), + this.store.select(selectors.whatIfMetadata), ]).pipe( - map(([darsDegreeAuditReportId, metadata]) => { - return metadata.find(md => { + map(([darsDegreeAuditReportId, programMetadata, whatIfMetadata]) => { + return programMetadata.concat(whatIfMetadata).find(md => { return md.darsDegreeAuditReportId === darsDegreeAuditReportId; }); }),