You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2022/08/30 12:41:50 UTC

[superset] 12/13: fix: exporting CSV can't apply pagination #17861 (#20178)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 5f3301aadbd42b5cc97b5b40a7f632b1158b745b
Author: Ilyas <31...@users.noreply.github.com>
AuthorDate: Thu Jun 2 05:42:51 2022 +0100

    fix: exporting CSV can't apply pagination #17861 (#20178)
---
 superset-frontend/src/dashboard/components/gridComponents/Chart.jsx   | 1 +
 superset-frontend/src/explore/components/ExploreChartHeader/index.jsx | 1 +
 2 files changed, 2 insertions(+)

diff --git a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
index b852523f17..7e7efa6353 100644
--- a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
+++ b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
@@ -304,6 +304,7 @@ export default class Chart extends React.Component {
       resultType: 'full',
       resultFormat: 'csv',
       force: true,
+      ownState: this.props.ownState,
     });
   }
 
diff --git a/superset-frontend/src/explore/components/ExploreChartHeader/index.jsx b/superset-frontend/src/explore/components/ExploreChartHeader/index.jsx
index 21605c553d..e308325fd5 100644
--- a/superset-frontend/src/explore/components/ExploreChartHeader/index.jsx
+++ b/superset-frontend/src/explore/components/ExploreChartHeader/index.jsx
@@ -374,6 +374,7 @@ export class ExploreChartHeader extends React.PureComponent {
               ...this.props.actions,
               openPropertiesModal: this.openPropertiesModal,
             }}
+            ownState={this.props.ownState}
             slice={this.props.slice}
             canDownloadCSV={this.props.can_download}
             chartStatus={chartStatus}