FIX: Use this.content.category instead of this.category on navigation-item

this.category isn't always available.
This commit is contained in:
Daniel Waterworth 2019-11-15 13:45:13 +00:00
parent 337fdccfeb
commit 676a1c8749
1 changed files with 1 additions and 1 deletions

View File

@ -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}`);
}