Skip to content

A platform for community discussion. Free, open, simple.

FIX: De-prioritize composer category on navigation (#13372)

Jarek Radosza470e880bde8
diff --git a/app/assets/javascripts/discourse/app/routes/build-category-route.js b/app/assets/javascripts/discourse/app/routes/build-category-route.js
index 5b77d14f82f..efb6f6c5f40 100644
--- a/app/assets/javascripts/discourse/app/routes/build-category-route.js
+++ b/app/assets/javascripts/discourse/app/routes/build-category-route.js
@@ -202,6 +202,8 @@ export default (filterArg, params) => {
deactivate() {
this._super(...arguments);
+
+ this.controllerFor("composer").set("prioritizedCategoryId", null);
this.searchService.set("searchContext", null);
},