ui-kit-ck-consultant 0.6.38 → 0.6.39

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.
@@ -911,16 +911,17 @@ var Table = /*#__PURE__*/function (_React$Component) {
911
911
  });
912
912
 
913
913
  if (thead) {
914
- var headerRow = _this.getArray(thead.props.children).find(function (row) {
914
+ var headerRow = _this.getArray(thead.props.children).filter(function (row) {
915
915
  return row.type.name === 'Tr';
916
916
  });
917
917
 
918
918
  if (headerRow) {
919
- var headers = _this.getArray(headerRow.props.children)[0].props.children[0].map(function (th) {
920
- return th.props && th.props.children ? _this.extractText(th.props.children) : '';
921
- }).join(';');
922
-
923
- dataCSV += headers + '\n';
919
+ _this.getArray(headerRow).forEach(function (row) {
920
+ var header = row.props.children[0].map(function (th) {
921
+ return th.props && th.props.children ? _this.extractText(th.props.children) : '';
922
+ }).join(';');
923
+ dataCSV += header + '\n';
924
+ });
924
925
  }
925
926
  }
926
927
 
@@ -931,8 +932,6 @@ var Table = /*#__PURE__*/function (_React$Component) {
931
932
 
932
933
  if (bodyRow) {
933
934
  _this.getArray(bodyRow).forEach(function (row) {
934
- console.log('1', row.props.children);
935
- console.log('2', row.props.children[0]);
936
935
  var body = row.props.children[0].map(function (th) {
937
936
  return th.props && th.props.children ? _this.extractText(th.props.children) : '';
938
937
  }).join(';');