Fix up for issues bulk assignment test.
This commit is contained in:
parent
87036a6acc
commit
014bef80bc
1 changed files with 11 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue