Make Select with nested name return null on no selection
I have an ant design <Select> component with a nested name that looks like this:
<Select name={['version', 'id']} ... />
When the associated for is submitted, if the select doesn't have a value, I want the corresponding value to be just null, but it's currently being passed as {id: undefined}. Is there a simple way to make all <Select> components with nested names to always return just null?
<Select name={['version', 'id']} ... />
When the associated for is submitted, if the select doesn't have a value, I want the corresponding value to be just null, but it's currently being passed as {id: undefined}. Is there a simple way to make all <Select> components with nested names to always return just null?
