mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
Backport for translation error fix (#33529)
Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>
This commit is contained in:
parent
082063331c
commit
9d5ccfb22d
@ -295,7 +295,7 @@ export default function NewAttributeSettings() {
|
||||
},
|
||||
translation.value,
|
||||
);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
console.error(`Error saving translation for ${translation.locale}`);
|
||||
}
|
||||
},
|
||||
@ -379,7 +379,7 @@ export default function NewAttributeSettings() {
|
||||
(translation) => translation.value.trim() !== "",
|
||||
);
|
||||
|
||||
if (!hasNonEmptyTranslations) {
|
||||
if (!hasNonEmptyTranslations && !formFields.displayName) {
|
||||
addError("createAttributeError", t("translationError"));
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user