Backport for translation error fix (#33529)

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>
This commit is contained in:
Agnieszka Gancarczyk
2024-10-03 19:28:35 +01:00
committed by GitHub
parent 082063331c
commit 9d5ccfb22d

View File

@@ -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;
}