ui-kit-ck-consultant 0.6.30 → 0.6.31

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