Skip to content

A platform for community discussion. Free, open, simple.

FIX: Category drop shows undefined (#11090)

Justin DiRose7b312b7bc676
diff --git a/app/assets/javascripts/select-kit/addon/components/category-row.js b/app/assets/javascripts/select-kit/addon/components/category-row.js
index 6026f455533..cbcb6df4dbb 100644
--- a/app/assets/javascripts/select-kit/addon/components/category-row.js
+++ b/app/assets/javascripts/select-kit/addon/components/category-row.js
@@ -39,9 +39,11 @@ export default SelectKitRowComponent.extend({
"description",
"categoryName",
function () {
- return htmlToText(
- this.descriptionText || this.description || this.categoryName
- );
+ if (this.category) {
+ return htmlToText(
+ this.descriptionText || this.description || this.categoryName
+ );
+ }
}
),