diff --git a/src/app/pages/wellcome/wellcome.component.ts b/src/app/pages/wellcome/wellcome.component.ts index b55c395..f84f334 100644 --- a/src/app/pages/wellcome/wellcome.component.ts +++ b/src/app/pages/wellcome/wellcome.component.ts @@ -96,6 +96,9 @@ export class WellcomeComponent implements OnInit { //this._communitiesService.getCommunities(this.properties, this.properties.communityAPI + 'communities').subscribe( this._communitiesService.getCommunitiesState().subscribe( communities => { + if (!communities || communities.length === 0) { + return; + } var countCommunities = 0; var index_managerOfCommunity = null; for (var i = 0; i < communities.length; i++) {