@insticc/react-datagrid-2 1.0.21 → 1.0.22

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.
@@ -109,7 +109,13 @@ var ExportActions = function ExportActions(props) {
109
109
  var tableData = rows.map(function (row) {
110
110
  return Object.values(row.original);
111
111
  });
112
- var columnsToExport = ["templateCodeCustom", "subject", "body"];
112
+ var columns = props.table.getAllFlatColumns();
113
+ var columnsToExport = [];
114
+ columns.forEach(function (col) {
115
+ if (col.id !== 'mrt-row-expand' || col.id !== 'mrt-row-expand') {
116
+ columnsToExport.push(col.id);
117
+ }
118
+ });
113
119
  // Get the column headers and data for the selected columns
114
120
  // Iterate through the rows and format the data for the PDF
115
121
  var pageWidth = doc.internal.pageSize.width; // Get page width
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insticc/react-datagrid-2",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "scripts": {