[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:
parent
36108a81f1
commit
48906a3e28
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue