mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Replace findProperty and filterProperty with findBy and filterBy
This commit is contained in:
@@ -33,7 +33,7 @@ export default Ember.Object.extend(ValidState, {
|
||||
},
|
||||
|
||||
fieldError(id, description) {
|
||||
const field = this.get('fields').findProperty('id', id);
|
||||
const field = this.get('fields').findBy('id', id);
|
||||
if (field) {
|
||||
field.setValid(false, description);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user