Skip to content

Commit 4a29110

Browse files
committed
Fetch category_id param directly
1 parent f761ca3 commit 4a29110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/routes/category/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default Ember.Route.extend({
77
},
88

99
model(params) {
10-
params.category = this.modelFor('category').id;
10+
params.category = this.paramsFor('category').category_id;
1111
return this.store.query('crate', params);
1212
},
1313

0 commit comments

Comments
 (0)