diff --git a/CSETWebNg/src/app/reports/cpg/cpg-report/cpg-report.component.ts b/CSETWebNg/src/app/reports/cpg/cpg-report/cpg-report.component.ts index a4ea574d60..7ace11aff4 100644 --- a/CSETWebNg/src/app/reports/cpg/cpg-report/cpg-report.component.ts +++ b/CSETWebNg/src/app/reports/cpg/cpg-report/cpg-report.component.ts @@ -69,12 +69,14 @@ export class CpgReportComponent implements OnInit { }); this.cpgSvc.getAnswerDistrib().subscribe((resp: any) => { + const cpgAnswerOptions = this.configSvc.config.moduleBehaviors.find(b => b.moduleName == 'CPG').answerOptions; + resp.forEach(r => { r.series.forEach(element => { if (element.name == 'U') { element.name = 'Unanswered'; } else { - element.name = this.configSvc.config.answersCPG?.find(x => x.code == element.name).answerLabel; + element.name = cpgAnswerOptions?.find(x => x.code == element.name).answerLabel; } }); });