Commit 26839521 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Fix bug inside the board_sidebar component

parent 89ab47cd
......@@ -86,14 +86,12 @@ require('./sidebar/remove_issue');
saveAssignees () {
this.loadingAssignees = true;
function setLoadingFalse() {
this.loadingAssignees = false;
}
gl.issueBoards.BoardsStore.detail.issue.update(this.endpoint)
.then(setLoadingFalse)
.then(() => {
this.loadingAssignees = false;
})
.catch(() => {
setLoadingFalse();
this.loadingAssignees = false;
return new Flash('An error occurred while saving assignees');
});
},
......
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