Skip to content

Commit 5990c04

Browse files
authored
Fix bug where empty strings were formatted as undefined by react-final-form (#357)
1 parent b6faea1 commit 5990c04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frontend/components/common/form/render/RenderEditAdditionalDetails.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function RenderEditAdditionalDetails({fieldName, label, placeholder}) {
3939
name={fieldName}
4040
label={label}
4141
type="multiline"
42+
parse={(v) => v} // identity function for allowing value of ''
4243
placeholder={placeholder}
4344
/>
4445
);

0 commit comments

Comments
 (0)