FIX: category-chooser search should be scoped to category (#7794)

This commit is contained in:
Joffrey JAFFEUX 2019-06-24 10:45:30 +02:00 committed by GitHub
parent f3c13d80c9
commit cea3a027f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ export default ComboBoxComponent.extend({
}
if (this.scopedCategoryId) {
computedContent = this.categoriesByScope().map(c =>
computedContent = this.categoriesByScope(this.scopedCategoryId).map(c =>
this.computeContentItem(c)
);
}

View File

@ -45,9 +45,9 @@ componentTest("with scopedCategoryId", {
assert.equal(this.subject.rowByIndex(1).value(), 26);
assert.equal(this.subject.rows().length, 2);
await this.subject.fillInFilter("dev");
await this.subject.fillInFilter("spec");
assert.equal(this.subject.rows().length, 3);
assert.equal(this.subject.rows().length, 1);
}
});