ui-kit-ck-consultant 0.6.22 → 0.6.24

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
@@ -894,7 +894,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
894
894
  _this.extractText = function (node) {
895
895
  if (typeof node === 'string') return node.trim();
896
896
  if (Array.isArray(node)) return node.map(_this.extractText).join(' ');
897
- if (node.props && node.props.children) return _this.extractText(node.props.children);
897
+ if (node && node.props && node.props.children) return _this.extractText(node.props.children);
898
898
  return '';
899
899
  };
900
900
 
@@ -917,16 +917,13 @@ var Table = /*#__PURE__*/function (_React$Component) {
917
917
  });
918
918
 
919
919
  if (thead) {
920
- console.log('head');
921
-
922
920
  var headerRow = _this.getArray(thead.props.children).find(function (row) {
923
921
  return row.type.name === 'Tr';
924
922
  });
925
923
 
926
924
  if (headerRow) {
927
- console.log('headerRow');
928
-
929
925
  var headers = _this.getArray(headerRow.props.children).map(function (th) {
926
+ console.log(_this.extractText(th.props.children), th.props.children);
930
927
  return th.props && th.props.children ? _this.extractText(th.props.children) : '';
931
928
  }).join(';');
932
929
 
@@ -935,8 +932,6 @@ var Table = /*#__PURE__*/function (_React$Component) {
935
932
  }
936
933
 
937
934
  if (tbody) {
938
- console.log('body');
939
-
940
935
  _this.getArray(tbody.props.children).forEach(function (row) {
941
936
  if (row.type === 'Tr') {
942
937
  var rowData = _this.getArray(row.props.children).map(function (td) {