@ballistix.digital/react-components 0.4.23 → 0.4.25

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
@@ -16817,9 +16817,15 @@ var handleGenerateSheets = function (tables) {
16817
16817
  });
16818
16818
  var excelRows = rows.map(function (row) {
16819
16819
  var result = {};
16820
- Object.keys(row).forEach(function (key) {
16820
+ Object.keys(row)
16821
+ .filter(function (key) {
16822
+ var _a;
16823
+ var cell = columns === null || columns === void 0 ? void 0 : columns.find(function (column) { return column.id === key; });
16824
+ return typeof ((_a = cell.columnDef) === null || _a === void 0 ? void 0 : _a.header) === 'string';
16825
+ })
16826
+ .forEach(function (key) {
16821
16827
  var _a, _b;
16822
- var cell = (_b = (_a = columns === null || columns === void 0 ? void 0 : columns.filter(function (column) { var _a; return typeof ((_a = column === null || column === void 0 ? void 0 : column.columnDef) === null || _a === void 0 ? void 0 : _a.header) === 'string'; })) === null || _a === void 0 ? void 0 : _a.find(function (column) { return column.id === key; }).columnDef.meta) === null || _b === void 0 ? void 0 : _b.excel(row[key]);
16828
+ var cell = (_b = (_a = columns === null || columns === void 0 ? void 0 : columns.find(function (column) { return column.id === key; })) === null || _a === void 0 ? void 0 : _a.columnDef.meta) === null || _b === void 0 ? void 0 : _b.excel(row[key]);
16823
16829
  result[key] = cell;
16824
16830
  });
16825
16831
  return result;