Take two at fixing JS tests.
This commit is contained in:
parent
5c3ef7875f
commit
91e84433ff
|
@ -193,7 +193,12 @@ export default SelectKitComponent.extend({
|
|||
@computed("computedValues.[]", "computedContent.[]")
|
||||
selectedComputedContents(computedValues, computedContent) {
|
||||
const selected = [];
|
||||
computedValues.forEach(v => selected.push(computedContent.findBy("value", v)) );
|
||||
|
||||
computedValues.forEach(v => {
|
||||
const value = computedContent.findBy("value", v);
|
||||
if (value) selected.push(value);
|
||||
});
|
||||
|
||||
return selected;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue