Skip to content

Commit

Permalink
fix: handling of defaultLabel (#17976)
Browse files Browse the repository at this point in the history
  • Loading branch information
emrysal authored Dec 3, 2024
1 parent b055fe1 commit a31d140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/features/form-builder/FormBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "") || ""),
}}
/>
);
Expand Down

0 comments on commit a31d140

Please sign in to comment.