REFACTOR: Remove an unused Topic model observer (#9723)
As far I can tell nothing sets categoryName on the Topic model. Didn't find anything in all-the-plugins/all-the-themes either.
This commit is contained in:
parent
b7d6eb3986
commit
a2bb33b6d7
|
@ -236,16 +236,6 @@ const Topic = RestModel.extend({
|
|||
this.set("category", Category.findById(this.category_id));
|
||||
},
|
||||
|
||||
@observes("categoryName")
|
||||
_categoryNameChanged() {
|
||||
const categoryName = this.categoryName;
|
||||
let category;
|
||||
if (categoryName) {
|
||||
category = this.site.get("categories").findBy("name", categoryName);
|
||||
}
|
||||
this.set("category", category);
|
||||
},
|
||||
|
||||
categoryClass: fmt("category.fullSlug", "category-%@"),
|
||||
|
||||
@discourseComputed("tags")
|
||||
|
|
Loading…
Reference in New Issue