FIX: ensures category exists for hideParent in categoryBadgeHTML (#9161)
This commit is contained in:
parent
4e5dd4105c
commit
e848d98782
|
@ -54,7 +54,7 @@ export default ComboBoxComponent.extend({
|
|||
"label",
|
||||
categoryBadgeHTML(category, {
|
||||
link: false,
|
||||
hideParent: !!category.parent_category_id,
|
||||
hideParent: category ? !!category.parent_category_id : true,
|
||||
allowUncategorized: true,
|
||||
recursive: true
|
||||
}).htmlSafe()
|
||||
|
|
Loading…
Reference in New Issue