DEV: Remove dead code
Given that this is a route, the 'model' attribute is the hook rather than an object.
This commit is contained in:
parent
50182e4e10
commit
2e9e557360
|
@ -21,10 +21,7 @@ const DiscoveryCategoriesRoute = DiscourseRoute.extend(OpenComposer, {
|
|||
let style =
|
||||
!this.site.mobileView && this.siteSettings.desktop_category_page_style;
|
||||
|
||||
let parentCategory = this.get("model.parentCategory");
|
||||
if (parentCategory) {
|
||||
return CategoryList.listForParent(this.store, parentCategory);
|
||||
} else if (style === "categories_and_latest_topics") {
|
||||
if (style === "categories_and_latest_topics") {
|
||||
return this._findCategoriesAndTopics("latest");
|
||||
} else if (style === "categories_and_top_topics") {
|
||||
return this._findCategoriesAndTopics("top");
|
||||
|
|
Loading…
Reference in New Issue