🐛 Proper handling of bool options
This commit is contained in:
parent
402ee88138
commit
bae6c4f244
1 changed files with 2 additions and 2 deletions
|
@ -18,14 +18,14 @@ const Bool = props => {
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Radio color="primary" />}
|
control={<Radio color="primary" />}
|
||||||
value="false"
|
value="false"
|
||||||
checked={value === "false" ? true : false}
|
checked={value === "false" || value === false ? true : false}
|
||||||
label={props.labels[0]}
|
label={props.labels[0]}
|
||||||
className="po-list-item"
|
className="po-list-item"
|
||||||
/>
|
/>
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
control={<Radio color="primary" />}
|
control={<Radio color="primary" />}
|
||||||
value="true"
|
value="true"
|
||||||
checked={value === "true" ? true : false}
|
checked={value === "true" || value === true ? true : false}
|
||||||
label={props.labels[1]}
|
label={props.labels[1]}
|
||||||
className="po-list-item"
|
className="po-list-item"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue