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