From 4c35e39a596925dea1c8bb5f6185a79ba50a9613 Mon Sep 17 00:00:00 2001 From: Drian Hillman Date: Mon, 3 Jul 2017 20:37:19 -0400 Subject: [PATCH] Refactors a portion to access this Data Structure more effectively --- src/components/Widgets/ListControl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Widgets/ListControl.js b/src/components/Widgets/ListControl.js index 7ba6dae3..8fb103f0 100644 --- a/src/components/Widgets/ListControl.js +++ b/src/components/Widgets/ListControl.js @@ -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 (
{value && value.map((item, index) => this.renderItem(item, index))}