This can simply be written as:

```javascript
return [this.props.getLayer(fd, this.props.payload, this.props.slice)];
```

If you follow my comment above. You can also do in the beginning of the 
function:

```javascript
const { getLayer, payload, slice } = this.props;
```

The you can simple refer to `getLayer`, `payload` and `slice` inside the 
function, instead of `this.props.getLayer`, `this.props.payload` and 
`this.props.slice`.

[ Full content available at: 
https://github.com/apache/incubator-superset/pull/5767 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to