[angular-16-irish-monitor | DONE | CHANGED]: resultLanding.service.ts: Added check, not to parse SDGs in irish portal.
This commit is contained in:
parent
fe0860d41a
commit
c225d81c16
|
@ -320,12 +320,14 @@ export class ResultLandingService {
|
||||||
if (this.resultLandingInfo.fos) {
|
if (this.resultLandingInfo.fos) {
|
||||||
this.resultLandingInfo.fos.sort((a, b) => a.id.localeCompare(b.id));
|
this.resultLandingInfo.fos.sort((a, b) => a.id.localeCompare(b.id));
|
||||||
}
|
}
|
||||||
|
if(properties.adminToolsPortalType != "irish") {
|
||||||
this.resultLandingInfo.sdg = subjectResults[4];
|
this.resultLandingInfo.sdg = subjectResults[4];
|
||||||
if (this.resultLandingInfo.sdg) {
|
if (this.resultLandingInfo.sdg) {
|
||||||
this.resultLandingInfo.sdg.sort((a, b) => {
|
this.resultLandingInfo.sdg.sort((a, b) => {
|
||||||
return HelperFunctions.sortSDGs(a, b);
|
return HelperFunctions.sortSDGs(a, b);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if(!this.resultLandingInfo.eoscSubjects) {
|
// if(!this.resultLandingInfo.eoscSubjects) {
|
||||||
// this.resultLandingInfo.eoscSubjects = subjectResults[5];
|
// this.resultLandingInfo.eoscSubjects = subjectResults[5];
|
||||||
|
|
Loading…
Reference in New Issue