Add empty option when creating new custom select/radio
[MAILPOET-2463]
This commit is contained in:
committed by
Pavel Dohnal
parent
9f17bf38af
commit
5bb6dcd6be
@@ -97,7 +97,7 @@ const AddCustomField = ({ clientId }) => {
|
|||||||
return (
|
return (
|
||||||
<RadioAndSelectFieldSettings
|
<RadioAndSelectFieldSettings
|
||||||
mandatory={fieldSettings && fieldSettings.mandatory ? fieldSettings.mandatory : false}
|
mandatory={fieldSettings && fieldSettings.mandatory ? fieldSettings.mandatory : false}
|
||||||
values={fieldSettings && fieldSettings.values ? fieldSettings.values : []}
|
values={fieldSettings && fieldSettings.values ? fieldSettings.values : [{ name: '', id: Math.random().toString() }]}
|
||||||
onChange={setFieldSettings}
|
onChange={setFieldSettings}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user