ui-kit-ck-consultant 0.6.22 → 0.6.23

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,15 +917,11 @@ 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) {
930
926
  return th.props && th.props.children ? _this.extractText(th.props.children) : '';
931
927
  }).join(';');
@@ -935,8 +931,6 @@ var Table = /*#__PURE__*/function (_React$Component) {
935
931
  }
936
932
 
937
933
  if (tbody) {
938
- console.log('body');
939
-
940
934
  _this.getArray(tbody.props.children).forEach(function (row) {
941
935
  if (row.type === 'Tr') {
942
936
  var rowData = _this.getArray(row.props.children).map(function (td) {