Commit 74b7d213 authored by Clement Ho's avatar Clement Ho

[skip ci] code review changes

parent d05c72c3
......@@ -86,15 +86,7 @@ require('./sidebar/remove_issue');
this.loadingAssignees = true;
gl.issueBoards.BoardsStore.detail.issue.update(this.endpoint)
.then((response) => {
this.loadingAssignees = false;
const data = response.json();
this.$forceUpdate();
gl.issueBoards.BoardsStore.detail.issue.processAssignees(data.assignees);
})
.then(() => this.loadingAssignees = false)
.catch(() => {
this.loadingAssignees = false;
return new Flash('An error occurred while saving assignees');
......
......@@ -65,7 +65,7 @@ class ListIssue {
}
removeAssignee (removeAssignee) {
if (assignee) {
if (removeAssignee) {
this.assignees = this.assignees.filter(assignee => assignee.id !== removeAssignee.id);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment