FIX: add attributes of `params` to topic `findOpts`.

FIX: add attributes of params to topic findOpts.

If params is ignored then findTopicList won’t get the no_subcategories attribute.

d27b877a40333cc6bc94984016071b5660da7f0f

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 aa6da58..a28b6c8 100644
--- a/app/assets/javascripts/discourse/app/routes/build-category-route.js
+++ b/app/assets/javascripts/discourse/app/routes/build-category-route.js
@@ -136,7 +136,7 @@ export default (filterArg, params) => {
       const listFilter = `c/${Category.slugFor(category)}/${
           category.id
         }/l/${this.filter(category)}`,
-        findOpts = filterQueryParams(modelParams),
+        findOpts = filterQueryParams(modelParams, params),
         extras = { cached: this.isPoppedState(transition) };
 
       return findTopicList(

GitHub sha: f67e7d2f

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there: