Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit a748ae9

Browse files
authored
Merge pull request #266 from workfloworchestrator/select-field-empty-fix
SelectField - Converts undefined to null
2 parents 185dc21 + 1d9a46b commit a748ae9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/uniforms-surfnet/src/SelectField.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ function Select({
112112
name={name}
113113
onChange={(option) => {
114114
if (!readOnly) {
115-
onChange(option?.value);
115+
// @ts-ignore
116+
onChange(option?.value ?? null);
116117
}
117118
}}
118119
styles={customStyles}

0 commit comments

Comments
 (0)