Fix add/remove admins

master
Max 5 years ago
parent 787008ebfb
commit 085d90114c

@ -47,7 +47,7 @@ export class Group {
} }
public updateAdmins(admins: IUser[]) { public updateAdmins(admins: IUser[]) {
// this.admins = []; this.admins = [];
for (const admin of admins) { for (const admin of admins) {
const user = new User(); const user = new User();
this.admins.push(user.assignFromResponse(admin)); this.admins.push(user.assignFromResponse(admin));

@ -64,6 +64,7 @@ export class GroupService extends BaseService {
name name
dueDate dueDate
joined joined
deletable
} }
}`, variables: { }`, variables: {
name: name, name: name,

Loading…
Cancel
Save