From f3d5cca3f26da0eb4bc35997082a9f456dc9e8ca Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 7 Nov 2023 13:23:36 -0500 Subject: [PATCH] FIX: restore "categories and top topics" layout (#24275) --- .../discourse/app/components/discovery/categories-display.gjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/components/discovery/categories-display.gjs b/app/assets/javascripts/discourse/app/components/discovery/categories-display.gjs index 6d2d78a4462b4..c144334c6233c 100644 --- a/app/assets/javascripts/discourse/app/components/discovery/categories-display.gjs +++ b/app/assets/javascripts/discourse/app/components/discovery/categories-display.gjs @@ -1,6 +1,7 @@ import Component from "@glimmer/component"; import { inject as service } from "@ember/service"; import CategoriesAndLatestTopics from "discourse/components/categories-and-latest-topics"; +import CategoriesAndTopTopics from "discourse/components/categories-and-top-topics"; import CategoriesBoxes from "discourse/components/categories-boxes"; import CategoriesBoxesWithTopics from "discourse/components/categories-boxes-with-topics"; import CategoriesOnly from "discourse/components/categories-only"; @@ -22,6 +23,7 @@ const subcategoryComponents = { const globalComponents = { categories_and_latest_topics_created_date: CategoriesAndLatestTopics, categories_and_latest_topics: CategoriesAndLatestTopics, + categories_and_top_topics: CategoriesAndTopTopics, categories_boxes_with_topics: CategoriesBoxesWithTopics, categories_boxes: CategoriesBoxes, categories_only: CategoriesOnly, @@ -53,7 +55,6 @@ export default class CategoriesDisplay extends Component { style = mobileCompatibleViews[0]; } const component = globalComponents[style]; - if (!component) { // eslint-disable-next-line no-console console.error("Unknown category list style: " + style);