[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:
parent
2163105f9a
commit
04badde256
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue