mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Fix broken translation in tags input field objects setting editor (#26340)
Why this change? When a property of `type: tags` is required, we should be displaying the "at least 1 tag is required" validation error message when there are no tags selected in the `TagChooser` compoment. However, we were passing `this.min` as the `count` attribute when generating the translation string which is incorrect as `this.min` is not always set.
This commit is contained in:
committed by
GitHub
parent
83ca1fd134
commit
8a6e43a3d4
@@ -36,8 +36,8 @@ export default class SchemaThemeSettingTypeTags extends Component {
|
||||
(this.min && this.value.length < this.min) ||
|
||||
(this.required && (!this.value || this.value.length === 0))
|
||||
) {
|
||||
return I18n.t("admin.customize.theme.schema.fields.tags.at_least_tag", {
|
||||
count: this.min,
|
||||
return I18n.t("admin.customize.theme.schema.fields.tags.at_least", {
|
||||
count: this.min || 1,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user