Return promise from join.then()
This commit is contained in:
parent
9c6f1d460e
commit
bda84d8d80
|
@ -130,9 +130,7 @@ const Group = RestModel.extend({
|
|||
join() {
|
||||
return ajax(`/groups/${this.id}/join.json`, {
|
||||
type: "PUT",
|
||||
}).then(() => {
|
||||
this.findMembers();
|
||||
});
|
||||
}).then(() => this.findMembers());
|
||||
},
|
||||
|
||||
addOwners(usernames, filter, notifyUsers) {
|
||||
|
|
Loading…
Reference in New Issue