FIX: group name can have dash and capital letters
This commit is contained in:
parent
9956b9833e
commit
34af6a5d54
|
@ -106,11 +106,8 @@ export default Ember.Component.extend({
|
||||||
return g.id === intVal;
|
return g.id === intVal;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (value !== value.underscore()) {
|
|
||||||
this.set('value', value.underscore());
|
|
||||||
}
|
|
||||||
return !!groups.find(function(g) {
|
return !!groups.find(function(g) {
|
||||||
return g.name === value.underscore();
|
return g.name === value;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue