FIX: Use this.content.category instead of this.category on navigation-item
this.category isn't always available.
This commit is contained in:
parent
337fdccfeb
commit
676a1c8749
|
@ -34,7 +34,7 @@ export default Component.extend(
|
|||
|
||||
// Include the category id if the option is present
|
||||
if (content.get("includeCategoryId")) {
|
||||
let categoryId = this.get("category.id");
|
||||
let categoryId = this.get("content.category.id");
|
||||
if (categoryId) {
|
||||
queryParams.push(`category_id=${categoryId}`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue