A platform for community discussion. Free, open, simple.
FIX: Set allowUncategorized SelectKit option (#25440)
Bianca Nenciu76647d3a340d
diff --git a/app/assets/javascripts/select-kit/addon/components/category-drop.js b/app/assets/javascripts/select-kit/addon/components/category-drop.jsindex 4bb257c6b29..8e4ffe4ad44 100644--- a/app/assets/javascripts/select-kit/addon/components/category-drop.js+++ b/app/assets/javascripts/select-kit/addon/components/category-drop.js@@ -2,6 +2,7 @@ import { computed } from "@ember/object";import { readOnly } from "@ember/object/computed";import { htmlSafe } from "@ember/template";import { categoryBadgeHTML } from "discourse/helpers/category-link";+import { setting } from "discourse/lib/computed";import DiscourseURL, {getCategoryAndTagUrl,getEditCategoryUrl,@@ -39,6 +40,7 @@ export default ComboBoxComponent.extend({displayCategoryDescription: "displayCategoryDescription",headerComponent: "category-drop/category-drop-header",parentCategory: false,+ allowUncategorized: setting("allow_uncategorized_topics"),},modifyComponentForRow() {