Themes: fix conversion for legacy themes

This commit is contained in:
Pieter Vander Vennet 2023-11-19 18:12:43 +01:00
parent 4634ca27ae
commit 21c35fc2c5
2 changed files with 11 additions and 10 deletions

View file

@ -27,11 +27,6 @@ export default class WithContextLoader {
`${translationContext ?? this._context}.${key}.default value`
)
}
if (Object.keys(v).length === 1 && typeof v["render"] === "string") {
throw `At ${
translationContext ?? "<unknown>"
}: use the content directly instead of {${key}: ${JSON.stringify(v)}}`
}
return new TagRenderingConfig(
<QuestionableTagRenderingConfigJson>v,