Skip to content

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

FIX: correctly uses the name helper for selected content (#15610)

Joffrey JAFFEUX307742e3aa3d
diff --git a/app/assets/javascripts/select-kit/addon/components/select-kit/single-select-header.js b/app/assets/javascripts/select-kit/addon/components/select-kit/single-select-header.js
index 141623faac8..9ccfd0efd31 100644
--- a/app/assets/javascripts/select-kit/addon/components/select-kit/single-select-header.js
+++ b/app/assets/javascripts/select-kit/addon/components/select-kit/single-select-header.js
@@ -26,7 +26,7 @@ export default SelectKitHeaderComponent.extend(UtilsMixin, {
name: computed("selectedContent.name", function () {
if (this.selectedContent) {
return I18n.t("select_kit.filter_by", {
- name: this.selectedContent.name,
+ name: this.getName(this.selectedContent),
});
} else {
return I18n.t("select_kit.select_to_filter");