Fix arrow-body-style eslint rule in ES6 files

[MAILPOET-1139]
This commit is contained in:
Pavel Dohnal
2017-12-06 14:16:41 +00:00
parent b08b53e9c0
commit e7ddfc3d29
26 changed files with 156 additions and 212 deletions

View File

@ -89,14 +89,12 @@ define([
let field = false;
if (this.props.field.fields !== undefined) {
field = this.props.field.fields.map((subfield, index) => {
return this.renderField({
index: index,
field: subfield,
item: this.props.item,
onValueChange: this.props.onValueChange || false,
});
});
field = this.props.field.fields.map((subfield, index) => this.renderField({
index: index,
field: subfield,
item: this.props.item,
onValueChange: this.props.onValueChange || false,
}));
} else {
field = this.renderField(this.props);
}