FIX: new-topic feature was broken when 'Default List Filter' was set to 'no subcategories' (#15476)

https://meta.discourse.org/t/directly-linking-to-new-topic-not-working-when-default-list-filter-no-sub-categories/197447
This commit is contained in:
Arpit Jalan 2022-01-06 20:48:08 +05:30 committed by GitHub
parent 16d9b2755c
commit cfcdedb709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ export default (filterArg, params) => {
if (
(!params || params.no_subcategories === undefined) &&
category.default_list_filter === "none" &&
filterArg === "default"
filterArg === "default" &&
modelParams
) {
return this.replaceWith("discovery.categoryNone", {
category,