Skip to content

Commit

Permalink
Fix non-Fastboot case
Browse files Browse the repository at this point in the history
https://api.emberjs.com/ember/3.14/classes/Route/methods/setupController?anchor=setupController

> If you implement the setupController hook in your Route, it will prevent this default behavior.
  • Loading branch information
kzys committed Dec 10, 2019
1 parent eeeacb7 commit e0f60a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default Route.extend({
];
},

// eslint-disable-next-line no-unused-vars
setupController(controller) {
setupController(controller, model) {
this._super(controller, model);
this.controllerFor('application').set('searchQuery', null);
},

Expand Down

0 comments on commit e0f60a4

Please sign in to comment.