ui-kit-ck-consultant 0.6.34 → 0.6.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -928,7 +928,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
928
928
  }
929
929
 
930
930
  if (tbody) {
931
- var bodyRow = _this.getArray(tbody.props.children).find(function (row) {
931
+ var bodyRow = _this.getArray(tbody.props.children).filter(function (row) {
932
932
  return row.type.name === 'Tr';
933
933
  });
934
934
 
@@ -937,11 +937,14 @@ var Table = /*#__PURE__*/function (_React$Component) {
937
937
  console.log('tbody 3', _this.getArray(bodyRow.props.children)[0]);
938
938
 
939
939
  if (bodyRow) {
940
- var body = _this.getArray(bodyRow.props.children)[0].props.children[0].map(function (th) {
941
- return th.props && th.props.children ? _this.extractText(th.props.children) : '';
942
- }).join(';');
943
-
944
- dataCSV += body + '\n';
940
+ _this.getArray(bodyRow.props.children)[0].forEach(function (row) {
941
+ console.log('1', row.props.children);
942
+ console.log('2', row.props.children[0]);
943
+ var body = row.props.children[0].map(function (th) {
944
+ return th.props && th.props.children ? _this.extractText(th.props.children) : '';
945
+ }).join(';');
946
+ dataCSV += body + '\n';
947
+ });
945
948
  }
946
949
  }
947
950
  }