fix rendering of keepright issues, fixes #8963

This commit is contained in:
Martin Raifer
2022-02-07 10:17:30 +01:00
parent 8e8d00ae8b
commit fe15d69b0c
2 changed files with 8 additions and 6 deletions
+4 -5
View File
@@ -12,12 +12,11 @@ export function uiKeepRightHeader() {
let replacements = d.replacements || {};
replacements.default = { html: unknown }; // special key `default` works as a fallback string
const title = t.html(`QA.keepRight.errorTypes.${itemType}.title`, replacements);
if (title !== unknown) {
return t.apply(`QA.keepRight.errorTypes.${itemType}.title`, replacements);
} else {
return t.apply(`QA.keepRight.errorTypes.${parentIssueType}.title`, replacements);
let title = t.html(`QA.keepRight.errorTypes.${itemType}.title`, replacements);
if (title === unknown) {
title = t.html(`QA.keepRight.errorTypes.${parentIssueType}.title`, replacements);
}
return title;
}