fix: exporting CSV can't apply pagination #17861 (#20178)

This commit is contained in:
Ilyas 2022-06-02 05:42:51 +01:00 committed by GitHub
parent e5f26313a5
commit d4f320f2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 0 deletions

View File

@ -299,6 +299,7 @@ export default class Chart extends React.Component {
resultType: 'full',
resultFormat: 'csv',
force: true,
ownState: this.props.ownState,
});
}

View File

@ -65,6 +65,7 @@ export const ExploreChartHeader = ({
slice,
actions,
formData,
ownState,
chart,
user,
canOverwrite,
@ -138,6 +139,7 @@ export const ExploreChartHeader = ({
slice,
actions.redirectSQLLab,
openPropertiesModal,
ownState,
);
const oldSliceName = slice?.slice_name;

View File

@ -521,6 +521,7 @@ function ExploreViewContainer(props) {
table_name={props.table_name}
formData={props.form_data}
chart={props.chart}
ownState={props.ownState}
user={props.user}
reports={props.reports}
onSaveChart={toggleModal}

View File

@ -95,6 +95,7 @@ export const useExploreAdditionalActionsMenu = (
slice,
onOpenInEditor,
onOpenPropertiesModal,
ownState,
) => {
const theme = useTheme();
const { addDangerToast, addSuccessToast } = useToasts();
@ -132,6 +133,7 @@ export const useExploreAdditionalActionsMenu = (
canDownloadCSV
? exportChart({
formData: latestQueryFormData,
ownState,
resultType: 'full',
resultFormat: 'csv',
})