@megha-ui/react 1.2.171 → 1.2.172
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.
|
@@ -814,8 +814,9 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
814
814
|
const filename = exportableFileName || randomFileName;
|
|
815
815
|
const exportableJson = sortedData.map((item) => {
|
|
816
816
|
const newItem = filterColumns.reduce((acc, column) => {
|
|
817
|
+
var _a;
|
|
817
818
|
if (!ignoredExportItems.includes(column.key) && item[column.key]) {
|
|
818
|
-
acc[column.key] = formatValue(item[column.key].value, locale, formatOptions);
|
|
819
|
+
acc[column.key] = formatValue(item[column.key].value, (_a = column.dataType) !== null && _a !== void 0 ? _a : "string", locale, formatOptions);
|
|
819
820
|
}
|
|
820
821
|
return acc;
|
|
821
822
|
}, {});
|
package/package.json
CHANGED