From 43f7d1607d64483b576846b22ed43090a5805b9c Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 16 Mar 2022 10:33:38 +0000 Subject: [PATCH] linting --- packages/client/src/utils/buttonActions.js | 1 - packages/server/src/api/controllers/row/external.js | 2 +- packages/server/src/api/controllers/row/internal.js | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index 594bee6953..f44e7d7453 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -241,7 +241,6 @@ const s3UploadHandler = async action => { } } - const exportDataHandler = async action => { let selection = rowSelectionStore.actions.getSelection( action.parameters.tableComponentId diff --git a/packages/server/src/api/controllers/row/external.js b/packages/server/src/api/controllers/row/external.js index 2f816e11a9..a8c8c0a627 100644 --- a/packages/server/src/api/controllers/row/external.js +++ b/packages/server/src/api/controllers/row/external.js @@ -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)) diff --git a/packages/server/src/api/controllers/row/internal.js b/packages/server/src/api/controllers/row/internal.js index 4b57e09029..8801827649 100644 --- a/packages/server/src/api/controllers/row/internal.js +++ b/packages/server/src/api/controllers/row/internal.js @@ -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))