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.
@@ -925,7 +925,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
925
925
  }
926
926
 
927
927
  if (tbody) {
928
- var bodyRow = _this.getArray(tbody.props.children).find(function (row) {
928
+ var bodyRow = _this.getArray(tbody.props.children).filter(function (row) {
929
929
  return row.type.name === 'Tr';
930
930
  });
931
931
 
@@ -934,11 +934,14 @@ var Table = /*#__PURE__*/function (_React$Component) {
934
934
  console.log('tbody 3', _this.getArray(bodyRow.props.children)[0]);
935
935
 
936
936
  if (bodyRow) {
937
- var body = _this.getArray(bodyRow.props.children)[0].props.children[0].map(function (th) {
938
- return th.props && th.props.children ? _this.extractText(th.props.children) : '';
939
- }).join(';');
940
-
941
- dataCSV += body + '\n';
937
+ _this.getArray(bodyRow.props.children)[0].forEach(function (row) {
938
+ console.log('1', row.props.children);
939
+ console.log('2', row.props.children[0]);
940
+ var body = row.props.children[0].map(function (th) {
941
+ return th.props && th.props.children ? _this.extractText(th.props.children) : '';
942
+ }).join(';');
943
+ dataCSV += body + '\n';
944
+ });
942
945
  }
943
946
  }
944
947
  }