mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-30 17:25:11 +02:00
fix warning in checbox in form field.
This commit is contained in:
parent
76b7e2c6e7
commit
bb9873be4f
@ -194,8 +194,12 @@ class FormField extends React.Component {
|
||||
if(field === 'autocomplete') {
|
||||
props.values = value;
|
||||
}
|
||||
|
||||
props.value = value;
|
||||
|
||||
if(field === 'checkbox') {
|
||||
props.value = !!value;
|
||||
} else {
|
||||
props.value = value;
|
||||
}
|
||||
|
||||
return props;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user