[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
This commit is contained in:
konstantina.galouni 2020-07-15 14:14:40 +00:00
parent 2163105f9a
commit 04badde256
1 changed files with 2 additions and 0 deletions

View File

@ -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<any>((resolve => {
this.source = this.http.get<Community>((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url);