From 3f07023a95cec2a63e2c537eb613057dea511236 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 29 Jul 2019 13:21:08 +0000 Subject: [PATCH] [Trunk|Connect]: Fix double subscribed to communities option on user menu. Need to be checked on beta. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@56800 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/app.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 => {