We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0df315 commit 2fa4440Copy full SHA for 2fa4440
lib/components/ExcelFile.js
@@ -41,7 +41,8 @@ class ExcelFile extends React.Component {
41
42
React.Children.forEach(columns, column => {
43
const getValue = typeof (column.props.value) === 'function' ? column.props.value : row => row[column.props.value];
44
- sheetRow.push(getValue(row) || '');
+ const itemValue = getValue(row);
45
+ sheetRow.push(isNaN(itemValue) ? (itemValue || '') : itemValue);
46
});
47
48
sheetData.push(sheetRow);
0 commit comments