diff --git a/src/utils.js b/src/utils.js index e376eb1a0..c6f9dc732 100644 --- a/src/utils.js +++ b/src/utils.js @@ -46,6 +46,7 @@ function createCSVDownload(columns, data, options) { const CSVHead = buildHead(columns); const buildBody = data => { + if (!data.length) return ''; return data .reduce( (soFar, row) =>