diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 7d97dc6..703fbc0 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -231,10 +231,8 @@ export class AppComponent { if(Session.isLoggedIn()){ this._subscribeService.getCommunitiesSubscribedTo(this.properties, Session.getUserEmail()).subscribe ( pids => { - if(pids.length > 0 && !this.community) { + if(pids.length > 0 ) { this.userMenuItems.push( new MenuItem("","Subscribed to communities","","/search/find/communities",false,[],[],{status:"%22subscribed%22"})) - } else { - this.userMenuItems = this.userMenuItems.filter(item => item.route !== '/search/find/communities'); } }, error => {