This is an automated email from the ASF dual-hosted git repository. michaelsmolina pushed a commit to branch 5.0 in repository https://gitbox.apache.org/repos/asf/superset.git
commit f85f3f8b567e3f1c98947d091a5494bd26c4ff8d Author: EmmanuelCbd <[email protected]> AuthorDate: Tue Apr 8 23:02:13 2025 +0200 fix(export): charts csv export in dashboards (#31720) (cherry picked from commit 6b7394e78998c04dee64ce6b6c8306ec24c126a5) --- .../src/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 2d48448815..b7c7785d3e 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx @@ -379,16 +379,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);
