diff --git a/.gitignore b/.gitignore index 153216e..f7dc6dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store node_modules/ npm-debug.log +package-lock.json diff --git a/src/index.js b/src/index.js index 24d7d6d..2dbee6d 100644 --- a/src/index.js +++ b/src/index.js @@ -105,7 +105,7 @@ export class Workbook extends Component { const sheetRow = [] React.Children.forEach(columns, column => { const getValue = typeof(column.props.value) === 'function' ? column.props.value : row => row[column.props.value] - sheetRow.push(getValue(row) || '') + sheetRow.push(getValue(row)) }) sheetData.push(sheetRow) })