diff --git a/superset-frontend/src/SqlLab/components/ExploreCtasResultsButton.jsx b/superset-frontend/src/SqlLab/components/ExploreCtasResultsButton.jsx index 9311e309f64..390bfbceb0a 100644 --- a/superset-frontend/src/SqlLab/components/ExploreCtasResultsButton.jsx +++ b/superset-frontend/src/SqlLab/components/ExploreCtasResultsButton.jsx @@ -24,7 +24,7 @@ import Dialog from 'react-bootstrap-dialog'; import { t } from '@superset-ui/translation'; import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls'; -import { exportChart } from '../../explore/exploreUtils'; +import { exploreChart } from '../../explore/exploreUtils'; import * as actions from '../actions/sqlLab'; import Button from '../../components/Button'; @@ -77,7 +77,7 @@ class ExploreCtasResultsButton extends React.PureComponent { ); // open new window for data visualization - exportChart({ formData }); + exploreChart(formData); }) .catch(() => { this.props.actions.addDangerToast(