[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
This commit is contained in:
k.triantafyllou 2019-07-29 13:21:08 +00:00
parent db83eb9233
commit 3f07023a95
1 changed files with 1 additions and 3 deletions

View File

@ -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 => {