[Explore | develop]: funders.component.ts: [Bug fix] When there is a funder dashboard with no research products or projects, do not show this funder at all.

This commit is contained in:
Konstantina Galouni 2023-07-17 16:59:12 +03:00
parent 36108a81f1
commit 48906a3e28
1 changed files with 12 additions and 12 deletions

View File

@ -162,18 +162,18 @@ export class FundersComponent implements OnInit {
this.fundersMap.get(id).monitorDashboard = queriedFunder.alias;
this.fundersMap.get(id).monitorDashboardStatus = queriedFunder.visibility;
this.fundersMap.get(id).logoUrl = (queriedFunder.isUpload ? properties.utilsService + "/download/" : "")+ (queriedFunder.logoUrl);
} else {
this.fundersMap.set(id, {
"id": queriedFunder.id,
"name": queriedFunder.name,
"alias": queriedFunder.alias,
"researchProducts": 0,
"openAccessResearchProducts": 0,
"projects": 0,
"monitorDashboard": queriedFunder.alias,
"monitorDashboardStatus": queriedFunder.visibility,
"logoUrl": (queriedFunder.isUpload ? properties.utilsService + "/download/" : "")+ (queriedFunder.logoUrl)
});
// } else {
// this.fundersMap.set(id, {
// "id": queriedFunder.id,
// "name": queriedFunder.name,
// "alias": queriedFunder.alias,
// "researchProducts": 0,
// "openAccessResearchProducts": 0,
// "projects": 0,
// "monitorDashboard": queriedFunder.alias,
// "monitorDashboardStatus": queriedFunder.visibility,
// "logoUrl": (queriedFunder.isUpload ? properties.utilsService + "/download/" : "")+ (queriedFunder.logoUrl)
// });
}
});
// convert funders map into an array