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

Fix up for issues bulk assignment test.

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