mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 16:30:38 -06:00
Backport for translation error fix (#33529)
Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>
This commit is contained in:
committed by
GitHub
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user