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",
|
"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()
|
||||||
|
|
Loading…
Reference in New Issue