Showing
3 changed files
with
9 additions
and
7 deletions
@@ -80,10 +80,11 @@ var VirtualList = function VirtualList(_ref) { | @@ -80,10 +80,11 @@ var VirtualList = function VirtualList(_ref) { | ||
80 | index: idx | 80 | index: idx |
81 | }; | 81 | }; |
82 | }); | 82 | }); |
83 | - var columns = children.map(function (child) { | 83 | + var columns = []; |
84 | + children.map(function (child) { | ||
84 | var item = flatten[child]; | 85 | var item = flatten[child]; |
85 | var schema = item && item.schema || {}; | 86 | var schema = item && item.schema || {}; |
86 | - return { | 87 | + columns.push({ |
87 | dataIndex: child, | 88 | dataIndex: child, |
88 | width: schema.width || FIELD_LENGTH, | 89 | width: schema.width || FIELD_LENGTH, |
89 | fixed: schema.fixed, | 90 | fixed: schema.fixed, |
@@ -101,7 +102,7 @@ var VirtualList = function VirtualList(_ref) { | @@ -101,7 +102,7 @@ var VirtualList = function VirtualList(_ref) { | ||
101 | dataIndex: childIndex | 102 | dataIndex: childIndex |
102 | }); | 103 | }); |
103 | } | 104 | } |
104 | - }; | 105 | + }); |
105 | }); | 106 | }); |
106 | 107 | ||
107 | if (!props.hideDelete || Array.isArray(itemProps.buttons)) { | 108 | if (!props.hideDelete || Array.isArray(itemProps.buttons)) { |
@@ -100,10 +100,11 @@ var VirtualList = function VirtualList(_ref) { | @@ -100,10 +100,11 @@ var VirtualList = function VirtualList(_ref) { | ||
100 | index: idx | 100 | index: idx |
101 | }; | 101 | }; |
102 | }); | 102 | }); |
103 | - var columns = children.map(function (child) { | 103 | + var columns = []; |
104 | + children.map(function (child) { | ||
104 | var item = flatten[child]; | 105 | var item = flatten[child]; |
105 | var schema = item && item.schema || {}; | 106 | var schema = item && item.schema || {}; |
106 | - return { | 107 | + columns.push({ |
107 | dataIndex: child, | 108 | dataIndex: child, |
108 | width: schema.width || FIELD_LENGTH, | 109 | width: schema.width || FIELD_LENGTH, |
109 | fixed: schema.fixed, | 110 | fixed: schema.fixed, |
@@ -121,7 +122,7 @@ var VirtualList = function VirtualList(_ref) { | @@ -121,7 +122,7 @@ var VirtualList = function VirtualList(_ref) { | ||
121 | dataIndex: childIndex | 122 | dataIndex: childIndex |
122 | }); | 123 | }); |
123 | } | 124 | } |
124 | - }; | 125 | + }); |
125 | }); | 126 | }); |
126 | 127 | ||
127 | if (!props.hideDelete || Array.isArray(itemProps.buttons)) { | 128 | if (!props.hideDelete || Array.isArray(itemProps.buttons)) { |