mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: removes _.indexOf from codebase (#6652)
This commit is contained in:
parent
0083eec686
commit
7e20a0b917
@ -24,7 +24,9 @@ export default Ember.Mixin.create({
|
||||
}.property("valid_values"),
|
||||
|
||||
allowsNone: function() {
|
||||
if (_.indexOf(this.get("valid_values"), "") >= 0)
|
||||
const validValues = this.get("valid_values");
|
||||
if (validValues && validValues.indexOf("") >= 0) {
|
||||
return "admin.settings.none";
|
||||
}
|
||||
}.property("valid_values")
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user