From bec3956f7f0d6334a5d2d9507624dc62c59fb3e3 Mon Sep 17 00:00:00 2001 From: Vinoth Kannan Date: Fri, 15 Mar 2019 09:45:17 +0530 Subject: [PATCH] FIX: Topic filters persist when navigating to home page (#7175) * FIX: Topic filters persist when navigating to home page * remove the line which no longer needed --- .../javascripts/discourse/controllers/discovery/topics.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 b/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 index aa522af0f1e..709deffbaa1 100644 --- a/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 +++ b/app/assets/javascripts/discourse/controllers/discovery/topics.js.es6 @@ -24,7 +24,9 @@ const controllerOpts = { expandAllPinned: false, resetParams() { - this.setProperties({ order: "default", ascending: false }); + Object.keys(this.get("model.params") || {}).forEach(key => + this.set(key, null) + ); }, actions: {