fix: handling of defaultLabel (#17976)

This commit is contained in:
Alex van Andel
2024-12-03 17:28:02 +00:00
committed by GitHub
parent b055fe182a
commit a31d140761
@@ -714,7 +714,7 @@ function FieldLabel({ field }: { field: RhfFormField }) {
<span
dangerouslySetInnerHTML={{
// Derive from field.label because label might change in b/w and field.labelAsSafeHtml will not be updated.
__html: markdownToSafeHTMLClient(field.label || "") || t(field.defaultLabel || ""),
__html: markdownToSafeHTMLClient(field.label || t(field.defaultLabel || "") || ""),
}}
/>
);