From b7926f264071fb6ff651ecf7e73f6df28e417258 Mon Sep 17 00:00:00 2001 From: Emmanuel Cabaud Date: Tue, 31 Dec 2024 09:59:23 +0100 Subject: [PATCH] fix(export): charts CSV export is always a fullCSV export --- .../dashboard/components/gridComponents/Chart.jsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx index 5cc8ba6d37f61..ea4d389fc7070 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx @@ -376,16 +376,13 @@ const Chart = props => { ], ); - const exportCSV = useCallback( - (isFullCSV = false) => { - exportTable('csv', isFullCSV); - }, - [exportTable], - ); + const exportCSV = useCallback(() => { + exportTable('csv', false); + }, [exportTable]); const exportFullCSV = useCallback(() => { - exportCSV(true); - }, [exportCSV]); + exportTable('csv', true); + }, [exportTable]); const exportPivotCSV = useCallback(() => { exportTable('csv', false, true);