Fix up for issues bulk assignment test.
This commit is contained in:
parent
87036a6acc
commit
014bef80bc
|
@ -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];
|
|
||||||
if (labelsToKeep.indexOf(id) === -1) {
|
this.getLabelsFromSelection().forEach((id) => {
|
||||||
result.push(id);
|
if (labelsToKeep.indexOf(id) === -1) {
|
||||||
}
|
result.push(id);
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue