mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 22:24:45 +08:00
FIX: Use this.content.category instead of this.category on navigation-item
this.category isn't always available.
This commit is contained in:
@ -34,7 +34,7 @@ export default Component.extend(
|
|||||||
|
|
||||||
// Include the category id if the option is present
|
// Include the category id if the option is present
|
||||||
if (content.get("includeCategoryId")) {
|
if (content.get("includeCategoryId")) {
|
||||||
let categoryId = this.get("category.id");
|
let categoryId = this.get("content.category.id");
|
||||||
if (categoryId) {
|
if (categoryId) {
|
||||||
queryParams.push(`category_id=${categoryId}`);
|
queryParams.push(`category_id=${categoryId}`);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user