Fixing eslint

This commit is contained in:
Jesús Espino 2021-03-21 09:04:30 +01:00
parent 09a9575dd0
commit d880595f77

View file

@ -39,7 +39,7 @@ class CheckboxElement extends React.PureComponent<Props, State> {
id={`checkbox-${block.id}`} id={`checkbox-${block.id}`}
disabled={readonly} disabled={readonly}
checked={this.state.active} checked={this.state.active}
onChange={(e) => { onChange={() => {
const newBlock = new MutableCheckboxBlock(block) const newBlock = new MutableCheckboxBlock(block)
if (newBlock.fields) { if (newBlock.fields) {
newBlock.fields.value = !this.state.active newBlock.fields.value = !this.state.active