FIX: group name can have dash and capital letters

This commit is contained in:
Arpit Jalan 2015-11-19 13:30:33 +05:30
parent 9956b9833e
commit 34af6a5d54
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}); });
} }
} }