@bento-core/table 1.0.1-ccdihub.65 → 1.0.1-ccdihub.66
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.
|
@@ -130,7 +130,7 @@ function downloadJson(tableData, table, downloadFileName) {
|
|
|
130
130
|
});
|
|
131
131
|
let formatDataVal = (0, _Dataformat.formatColumnValues)(filterColumns, tableData);
|
|
132
132
|
filterColumns.forEach(column => {
|
|
133
|
-
formatDataVal = JSON.parse(JSON.stringify(formatDataVal).split(column.dataField).join(column.header));
|
|
133
|
+
formatDataVal = JSON.parse(JSON.stringify(formatDataVal).split("\"".concat(column.dataField, "\":")).join("\"".concat(column.header, "\":")));
|
|
134
134
|
});
|
|
135
135
|
const jsonse = JSON.stringify(formatDataVal);
|
|
136
136
|
const exportData = new Blob([jsonse], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bento-core/table",
|
|
3
|
-
"version": "1.0.1-ccdihub.
|
|
3
|
+
"version": "1.0.1-ccdihub.66",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
|
|
@@ -89,7 +89,7 @@ export function downloadJson(tableData, table, downloadFileName) {
|
|
|
89
89
|
let formatDataVal = formatColumnValues(filterColumns, tableData);
|
|
90
90
|
filterColumns.forEach((column) => {
|
|
91
91
|
formatDataVal = JSON.parse(
|
|
92
|
-
JSON.stringify(formatDataVal).split(column.dataField).join(column.header),
|
|
92
|
+
JSON.stringify(formatDataVal).split(`"${column.dataField}":`).join(`"${column.header}":`),
|
|
93
93
|
);
|
|
94
94
|
});
|
|
95
95
|
const jsonse = JSON.stringify(formatDataVal);
|