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

This commit is contained in:
Joffrey JAFFEUX 2022-01-17 12:18:43 +01:00 committed by GitHub
parent 655f28ca5e
commit 307742e3aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");