Commit 014bef80 authored by Bryce Johnson's avatar Bryce Johnson

Fix up for issues bulk assignment test.

parent 87036a6a
......@@ -69,15 +69,17 @@
getUnmarkedIndeterminedLabels() {
const result = [];
const elements = this.getElement('.labels-filter .is-indeterminate');
const labelsToKeep = elements.map((el) => labelsToKeep.push($(el).data('labelId')));
const selectedLabels = this.getLabelsFromSelection()
.forEach(() => {
const id = selectedLabels[j];
if (labelsToKeep.indexOf(id) === -1) {
result.push(id);
}
});
const labelsToKeep = [];
this.getElement('.labels-filter .is-indeterminate')
.each((i, el) => labelsToKeep.push($(el).data('labelId')));
this.getLabelsFromSelection().forEach((id) => {
if (labelsToKeep.indexOf(id) === -1) {
result.push(id);
}
});
return result;
}
......
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