src/components/Widgets/ListControl.js
Function renderItem
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderItem(item, index) {
const { value, field, getAsset, onAddAsset, onRemoveAsset } = this.props;
const { itemStates } = this.state;
const collapsed = itemStates.getIn([index, 'collapsed']);
const classNames = [styles.item, collapsed ? styles.collapsed : styles.expanded];