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.
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -923,7 +923,9 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
923
923
|
console.log(headerRow);
|
924
924
|
|
925
925
|
if (headerRow) {
|
926
|
-
var headers = _this.getArray(headerRow.props.children).
|
926
|
+
var headers = _this.getArray(headerRow.props.children).find(function (row) {
|
927
|
+
return ['Th', 'Td'].includes(row.type.name);
|
928
|
+
}).map(function (th) {
|
927
929
|
console.log(_this.extractText(th.props.children), th.props.children);
|
928
930
|
return th.props && th.props.children ? _this.extractText(th.props.children) : '';
|
929
931
|
}).join(';');
|
@@ -935,7 +937,9 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
935
937
|
if (tbody) {
|
936
938
|
_this.getArray(tbody.props.children).forEach(function (row) {
|
937
939
|
if (row.type === 'Tr') {
|
938
|
-
var rowData = _this.getArray(row.props.children).
|
940
|
+
var rowData = _this.getArray(row.props.children).find(function (row) {
|
941
|
+
return ['Th', 'Td'].includes(row.type.name);
|
942
|
+
}).map(function (td) {
|
939
943
|
return td.props && td.props.children ? _this.extractText(td.props.children) : '';
|
940
944
|
}).join(';');
|
941
945
|
|