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

View File

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