This commit is contained in:
Peter Clement 2022-03-16 10:33:38 +00:00
parent a2c3257515
commit fcfce77d5d
3 changed files with 3 additions and 4 deletions

View File

@ -241,7 +241,6 @@ const s3UploadHandler = async action => {
}
}
const exportDataHandler = async action => {
let selection = rowSelectionStore.actions.getSelection(
action.parameters.tableComponentId

View File

@ -179,7 +179,7 @@ exports.exportRows = async ctx => {
let headers = Object.keys(result.rows[0])
const exporter = exporters[format]
const filename = `export.${format}`
// send down the file
ctx.attachment(filename)
return apiFileReturn(exporter(headers, result.rows))

View File

@ -377,11 +377,11 @@ exports.exportRows = async ctx => {
).rows.map(row => row.doc)
let rows = await outputProcessing(table, response)
let headers = Object.keys(rows[0])
const exporter = exporters[format]
const filename = `export.${format}`
// send down the file
ctx.attachment(filename)
return apiFileReturn(exporter(headers, rows))