mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
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:
parent
16d9b2755c
commit
cfcdedb709
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user