fix checkbox label prop
@@ -29,12 +29,11 @@ export default class ToggleButton extends React.Component {
return (
<Checkbox
id={id}
- label={meta && meta.description}
+ label={(meta && meta.description) || label}
checked={this.state.checked}
onCheck={this.handleCheck}
style={{ display: 'inline-block', width: 'auto', position: 'relative', top: 6, marginTop: -11 }}
disabled={fromElektraBool(meta && meta.readonly)}
- label={label}
/>
)
}
