diff --git a/src/app/components/social/groups/groups.component.ts b/src/app/components/social/groups/groups.component.ts index bcb87cf..9a9d08e 100644 --- a/src/app/components/social/groups/groups.component.ts +++ b/src/app/components/social/groups/groups.component.ts @@ -30,10 +30,10 @@ export class DialogCreateGroupComponent { if (name) { this.social.createGroup(name).subscribe(() => { this.dialogRef.close(); - }, ((error: IErrorResponse) => { + }, (error: IErrorResponse) => { this.errorMessage = error.error.errors[0].message; this.errorOccurred = true; - })); + }); } } diff --git a/src/app/services/social/social.service.ts b/src/app/services/social/social.service.ts index ede45f0..fc667ff 100644 --- a/src/app/services/social/social.service.ts +++ b/src/app/services/social/social.service.ts @@ -4,7 +4,6 @@ import {HttpClient} from '@angular/common/http'; import {BaseService} from '../base.service'; import { tap } from 'rxjs/internal/operators/tap'; import {DatasharingService} from 'src/app/services/datasharing.service'; -import { group } from '@angular/animations'; import { Group } from 'src/app/models/group'; import { GroupInfo } from 'src/app/models/groupinfo'; @@ -47,10 +46,10 @@ export class SocialService extends BaseService { const body = SocialService.buildGroupCreateBody(name); return this.postGraphql(body, null, 0) .pipe(tap(response => { - let group_ = new Group(); - group_ = response.data.createGroup; - group_.picture = group_.buildPictureUrl(group_.picture); - this.data.addGroupToUser(group_); + let group = new Group(); + group = response.data.createGroup; + group.picture = group.buildPictureUrl(group.picture); + this.data.addGroupToUser(group); })); }