don't show if there is a displayName set (#30647)

fixes: #30582

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-07-01 10:48:10 +02:00 committed by GitHub
parent 287916997e
commit cb048c9700
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -379,7 +379,7 @@ export default function NewAttributeSettings() {
(translation) => translation.value.trim() !== "",
);
if (!hasNonEmptyTranslations) {
if (!hasNonEmptyTranslations && !formFields.displayName) {
addError("createAttributeError", t("translationError"));
return;
}