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 +1 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -891,7 +891,7 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
891
891
|
_this.extractText = function (node) {
|
892
892
|
if (typeof node === 'string') return node.trim();
|
893
893
|
if (Array.isArray(node)) return node.map(_this.extractText).join(' ');
|
894
|
-
if (node.props && node.props.children) return _this.extractText(node.props.children);
|
894
|
+
if (node && node.props && node.props.children) return _this.extractText(node.props.children);
|
895
895
|
return '';
|
896
896
|
};
|
897
897
|
|
@@ -914,15 +914,11 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
914
914
|
});
|
915
915
|
|
916
916
|
if (thead) {
|
917
|
-
console.log('head');
|
918
|
-
|
919
917
|
var headerRow = _this.getArray(thead.props.children).find(function (row) {
|
920
918
|
return row.type.name === 'Tr';
|
921
919
|
});
|
922
920
|
|
923
921
|
if (headerRow) {
|
924
|
-
console.log('headerRow');
|
925
|
-
|
926
922
|
var headers = _this.getArray(headerRow.props.children).map(function (th) {
|
927
923
|
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
928
924
|
}).join(';');
|
@@ -932,8 +928,6 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
932
928
|
}
|
933
929
|
|
934
930
|
if (tbody) {
|
935
|
-
console.log('body');
|
936
|
-
|
937
931
|
_this.getArray(tbody.props.children).forEach(function (row) {
|
938
932
|
if (row.type === 'Tr') {
|
939
933
|
var rowData = _this.getArray(row.props.children).map(function (td) {
|