ui-kit-ck-consultant 0.6.51 → 0.6.53
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 +3 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -6
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -909,17 +909,14 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
909
909
|
|
910
910
|
if (allRows.length > 0) {
|
911
911
|
allRows.forEach(function (row, rowIndex) {
|
912
|
-
|
912
|
+
console.log(row.props.children.length, row.props.children.length !== 2, row.props.children.props.type, row.props.children.props.type === React__default.Fragment, row);
|
913
913
|
|
914
|
-
|
915
|
-
var cells = rowChildren.flatMap(function (cell) {
|
916
|
-
return (cell === null || cell === void 0 ? void 0 : cell.type) === React__default.Fragment ? _this.getArray(cell.props.children) : [cell];
|
917
|
-
}).filter(function (cell) {
|
914
|
+
var cells = _this.getArray(row.props.children.length !== 2 ? row.props.children.props.type === React__default.Fragment ? row.props.children.props.children[0] : row.props.children : row.props.children[0]).filter(function (cell) {
|
918
915
|
var _cell$type, _cell$type2;
|
919
916
|
|
920
917
|
return (cell === null || cell === void 0 ? void 0 : (_cell$type = cell.type) === null || _cell$type === void 0 ? void 0 : _cell$type.name) === 'Th' || (cell === null || cell === void 0 ? void 0 : (_cell$type2 = cell.type) === null || _cell$type2 === void 0 ? void 0 : _cell$type2.name) === 'Td';
|
921
918
|
});
|
922
|
-
|
919
|
+
|
923
920
|
var rowData = cells.map(function (cell) {
|
924
921
|
return cell.props && cell.props.children ? _this.extractText(cell.props.children) : '';
|
925
922
|
}).join(';');
|