Skip to content

Commit d4f320f

Browse files
authored
fix: exporting CSV can't apply pagination apache#17861 (apache#20178)
1 parent e5f2631 commit d4f320f

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ export default class Chart extends React.Component {
299299
resultType: 'full',
300300
resultFormat: 'csv',
301301
force: true,
302+
ownState: this.props.ownState,
302303
});
303304
}
304305

superset-frontend/src/explore/components/ExploreChartHeader/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const ExploreChartHeader = ({
6565
slice,
6666
actions,
6767
formData,
68+
ownState,
6869
chart,
6970
user,
7071
canOverwrite,
@@ -138,6 +139,7 @@ export const ExploreChartHeader = ({
138139
slice,
139140
actions.redirectSQLLab,
140141
openPropertiesModal,
142+
ownState,
141143
);
142144

143145
const oldSliceName = slice?.slice_name;

superset-frontend/src/explore/components/ExploreViewContainer/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ function ExploreViewContainer(props) {
521521
table_name={props.table_name}
522522
formData={props.form_data}
523523
chart={props.chart}
524+
ownState={props.ownState}
524525
user={props.user}
525526
reports={props.reports}
526527
onSaveChart={toggleModal}

superset-frontend/src/explore/components/useExploreAdditionalActionsMenu/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export const useExploreAdditionalActionsMenu = (
9595
slice,
9696
onOpenInEditor,
9797
onOpenPropertiesModal,
98+
ownState,
9899
) => {
99100
const theme = useTheme();
100101
const { addDangerToast, addSuccessToast } = useToasts();
@@ -132,6 +133,7 @@ export const useExploreAdditionalActionsMenu = (
132133
canDownloadCSV
133134
? exportChart({
134135
formData: latestQueryFormData,
136+
ownState,
135137
resultType: 'full',
136138
resultFormat: 'csv',
137139
})

0 commit comments

Comments
 (0)