ui-kit-ck-consultant 0.6.37 → 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
 
@@ -929,14 +930,8 @@ var Table = /*#__PURE__*/function (_React$Component) {
929
930
  return row.type.name === 'Tr';
930
931
  });
931
932
 
932
- console.log('tbody 1', bodyRow);
933
- console.log('tbody 2', _this.getArray(bodyRow.props.children));
934
- console.log('tbody 3', _this.getArray(bodyRow.props.children)[0]);
935
-
936
933
  if (bodyRow) {
937
934
  _this.getArray(bodyRow).forEach(function (row) {
938
- console.log('1', row.props.children);
939
- console.log('2', row.props.children[0]);
940
935
  var body = row.props.children[0].map(function (th) {
941
936
  return th.props && th.props.children ? _this.extractText(th.props.children) : '';
942
937
  }).join(';');