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:
@@ -1,7 +1,7 @@
|
||||
export default Ember.Route.extend({
|
||||
model(params) {
|
||||
const allSteps = this.modelFor('application').steps;
|
||||
const step = allSteps.findProperty('id', params.step_id);
|
||||
const step = allSteps.findBy('id', params.step_id);
|
||||
return step ? step : allSteps[0];
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user