Refactors a portion to access this Data Structure more effectively
This commit is contained in:
parent
a8ebba2cf2
commit
4c35e39a59
@ -170,8 +170,8 @@ export default class ListControl extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderListControl() {
|
renderListControl() {
|
||||||
const { value, forID } = this.props;
|
const { value, forID, field } = this.props;
|
||||||
const listLabel = this.props.field._root.entries[0][1];
|
const listLabel = field.get('label');
|
||||||
|
|
||||||
return (<div id={forID}>
|
return (<div id={forID}>
|
||||||
{value && value.map((item, index) => this.renderItem(item, index))}
|
{value && value.map((item, index) => this.renderItem(item, index))}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user