Commit 6f438650 authored by Simon Knox's avatar Simon Knox

send correct data to remove labels [ci-skip]

parent 3c21ea11
......@@ -32,10 +32,11 @@ gl.issueBoards.RemoveIssueBtn = Vue.extend({
removeIssue() {
const issue = this.issue;
const lists = issue.getLists();
const labelIds = lists.map(list => list.label.id);
const listLabelIds = lists.map(list => list.label.id);
const labelIds = this.issue.labels.map(label => label.id).filter(id => !listLabelIds.includes(id));
const data = {
issue: {
remove_label_ids: labelIds,
label_ids: labelIds,
},
};
if (Store.state.currentBoard.milestone_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