ui-kit-ck-consultant 0.6.26 → 0.6.27

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.
@@ -920,7 +920,9 @@ var Table = /*#__PURE__*/function (_React$Component) {
920
920
  console.log(headerRow);
921
921
 
922
922
  if (headerRow) {
923
- var headers = _this.getArray(headerRow.props.children).map(function (th) {
923
+ var headers = _this.getArray(headerRow.props.children).find(function (row) {
924
+ return ['Th', 'Td'].includes(row.type.name);
925
+ }).map(function (th) {
924
926
  console.log(_this.extractText(th.props.children), th.props.children);
925
927
  return th.props && th.props.children ? _this.extractText(th.props.children) : '';
926
928
  }).join(';');
@@ -932,7 +934,9 @@ var Table = /*#__PURE__*/function (_React$Component) {
932
934
  if (tbody) {
933
935
  _this.getArray(tbody.props.children).forEach(function (row) {
934
936
  if (row.type === 'Tr') {
935
- var rowData = _this.getArray(row.props.children).map(function (td) {
937
+ var rowData = _this.getArray(row.props.children).find(function (row) {
938
+ return ['Th', 'Td'].includes(row.type.name);
939
+ }).map(function (td) {
936
940
  return td.props && td.props.children ? _this.extractText(td.props.children) : '';
937
941
  }).join(';');
938
942