FIX: ensures category exists for hideParent in categoryBadgeHTML (#9161)

This commit is contained in:
Joffrey JAFFEUX 2020-03-11 00:58:46 +01:00 committed by GitHub
parent 4e5dd4105c
commit e848d98782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export default ComboBoxComponent.extend({
"label", "label",
categoryBadgeHTML(category, { categoryBadgeHTML(category, {
link: false, link: false,
hideParent: !!category.parent_category_id, hideParent: category ? !!category.parent_category_id : true,
allowUncategorized: true, allowUncategorized: true,
recursive: true recursive: true
}).htmlSafe() }).htmlSafe()