Skip to content

Commit 6b7394e

Browse files
authored
fix(export): charts csv export in dashboards (#31720)
1 parent 5a8eab3 commit 6b7394e

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

  • superset-frontend/src/dashboard/components/gridComponents

‎superset-frontend/src/dashboard/components/gridComponents/Chart.jsx‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -379,16 +379,13 @@ const Chart = props => {
379379
],
380380
);
381381

382-
const exportCSV = useCallback(
383-
(isFullCSV = false) => {
384-
exportTable('csv', isFullCSV);
385-
},
386-
[exportTable],
387-
);
382+
const exportCSV = useCallback(() => {
383+
exportTable('csv', false);
384+
}, [exportTable]);
388385

389386
const exportFullCSV = useCallback(() => {
390-
exportCSV(true);
391-
}, [exportCSV]);
387+
exportTable('csv', true);
388+
}, [exportTable]);
392389

393390
const exportPivotCSV = useCallback(() => {
394391
exportTable('csv', false, true);

0 commit comments

Comments
 (0)