diff --git a/src/app/pages/community/community-edit-form/community-edit-form.component.ts b/src/app/pages/community/community-edit-form/community-edit-form.component.ts index 9866b44..93229cd 100644 --- a/src/app/pages/community/community-edit-form/community-edit-form.component.ts +++ b/src/app/pages/community/community-edit-form/community-edit-form.component.ts @@ -154,13 +154,12 @@ export class CommunityEditFormComponent implements OnInit{ { 'errorCode': LoginErrorCodes.NOT_VALID, 'redirectUrl': this._router.url} }); } else { if (this.communityId != null && this.communityId !== '') { - this.showLoading = true; const community = this.parseUpdatedCommunity(); if (!Validator.hasValidEmails(community['managers']) || !this.hasFilled(community['name'])) { - this._router.navigate(['/community-edit-form'], { - queryParams: { 'communityId': this.communityId}}); + return; } else { + this.showLoading = true; const newManagers = this.getNewManagers(); this._communityService.updateCommunity( this.properties.communityAPI + this.communityId, community).subscribe(