fix: handling of defaultLabel (#17976)
This commit is contained in:
@@ -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 || "") || ""),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user