FIX: regression preventing addition of multiple tags in a group

This commit is contained in:
Joffrey JAFFEUX
2018-04-02 17:54:40 +02:00
committed by GitHub
parent 16341219ab
commit a828da33aa
2 changed files with 13 additions and 4 deletions

View File

@@ -49,7 +49,8 @@ export default Ember.Mixin.create({
}
const inCollection = this.get("collectionComputedContent").map(c => get(c, "id")).includes(term);
const inSelection = this.get("selection").map(s => s.toLowerCase()).includes(term);
const inSelection = this.get("selection").map(s => get(s, "value").toLowerCase()).includes(term);
if (inCollection || inSelection) {
return false;
}