From 04badde25602ac5fb70cfc4af08e1599fb583f9e Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 15 Jul 2020 14:14:40 +0000 Subject: [PATCH] [Trunk | Library]: configuration.service.ts: In "initCommunityInformation" when community parameter is null do not query for /communityFull. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59137 d315682c-612b-4755-9ff5-7f18f6832af3 --- utils/configuration/configuration.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/configuration/configuration.service.ts b/utils/configuration/configuration.service.ts index 657c1615..9c624b23 100644 --- a/utils/configuration/configuration.service.ts +++ b/utils/configuration/configuration.service.ts @@ -36,6 +36,8 @@ export class ConfigurationService { } public initCommunityInformation(properties:EnvProperties, community:string) { + if(community == null) return; + let url = properties.adminToolsAPIURL +"/communityFull/" + community; this.promise = new Promise((resolve => { this.source = this.http.get((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url);