Skip to content

Commit

Permalink
FIX: restore "categories and top topics" layout (discourse#24275)
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot authored Nov 7, 2023
1 parent a1c1f7c commit f3d5cca
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f3d5cca

Please sign in to comment.