diff --git a/sharedComponents/bottom.component.ts b/sharedComponents/bottom.component.ts index 10f3e0cb..ec313654 100644 --- a/sharedComponents/bottom.component.ts +++ b/sharedComponents/bottom.component.ts @@ -86,10 +86,12 @@ constructor(private config: ConfigurationService, private route: ActivatedRoute } private getDivContents() { - if (this.communityId) { - this.subs.push(this.helper.getDivHelpContents(this.properties, this.communityId, "/").subscribe(contents => { - this.divContents = contents; - })); + let communityId = this.communityId; + if(!communityId) { + communityId = properties.adminToolsCommunity; } + this.subs.push(this.helper.getDivHelpContents(this.properties, communityId, "/").subscribe(contents => { + this.divContents = contents; + })); } } diff --git a/utils/helper/helper.service.ts b/utils/helper/helper.service.ts index cec9ff46..df1d2866 100644 --- a/utils/helper/helper.service.ts +++ b/utils/helper/helper.service.ts @@ -31,6 +31,9 @@ export class HelperService { } getPageHelpContents(properties:EnvProperties, communityId:string, router: string):any { + if(!communityId) { + communityId = properties.adminToolsCommunity; + } if(!communityId) { communityId = 'openaire'; } @@ -46,6 +49,9 @@ export class HelperService { } getDivHelpContents(properties:EnvProperties, communityId:string, router: string):any { + if(!communityId) { + communityId = properties.adminToolsCommunity; + } if(!communityId) { communityId = 'openaire'; }