From c9eef20d8ebc34283507397a3549ead34bd5e4a8 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Tue, 29 May 2018 14:46:14 +0000 Subject: [PATCH] Parse communities only if type is community or ri git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@52271 d315682c-612b-4755-9ff5-7f18f6832af3 --- connect/communities/communities.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/connect/communities/communities.service.ts b/connect/communities/communities.service.ts index c859639f..127f2955 100644 --- a/connect/communities/communities.service.ts +++ b/connect/communities/communities.service.ts @@ -126,7 +126,9 @@ export class CommunitiesService { } } } - communities.push(result); + if (result['type'] == 'community' || result['type'] == "ri") { + communities.push(result); + } } return communities;