Skip to content
Snippets Groups Projects
Commit 48a5625e authored by Isaac Evavold's avatar Isaac Evavold
Browse files

fix what-if audit loading

parent 710283d3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
});
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment