Refactors a portion to access this Data Structure more effectively

This commit is contained in:
Drian Hillman 2017-07-03 20:37:19 -04:00
parent a8ebba2cf2
commit 4c35e39a59

View File

@ -170,8 +170,8 @@ export default class ListControl extends Component {
}
renderListControl() {
const { value, forID } = this.props;
const listLabel = this.props.field._root.entries[0][1];
const { value, forID, field } = this.props;
const listLabel = field.get('label');
return (<div id={forID}>
{value && value.map((item, index) => this.renderItem(item, index))}