From e0f60a4ba1d085ef1d888ab8d275486604dfd0fb Mon Sep 17 00:00:00 2001 From: Kazuyoshi Kato Date: Mon, 9 Dec 2019 22:32:06 -0800 Subject: [PATCH] Fix non-Fastboot case 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. --- app/routes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/index.js b/app/routes/index.js index 78d43c4659a..226dd33e6f2 100644 --- a/app/routes/index.js +++ b/app/routes/index.js @@ -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); },