mirror of https://github.com/apache/superset.git
fix: Chart download as image issue (#19885)
This commit is contained in:
parent
9328053521
commit
c2999fdc22
|
@ -43,6 +43,8 @@ const propTypes = {
|
|||
onOpenInEditor: PropTypes.func,
|
||||
latestQueryFormData: PropTypes.object.isRequired,
|
||||
slice: PropTypes.object,
|
||||
canDownloadCSV: PropTypes.bool,
|
||||
canAddReports: PropTypes.bool,
|
||||
};
|
||||
|
||||
const MENU_KEYS = {
|
||||
|
@ -215,7 +217,7 @@ const ExploreAdditionalActionsMenu = ({
|
|||
break;
|
||||
case MENU_KEYS.DOWNLOAD_AS_IMAGE:
|
||||
downloadAsImage(
|
||||
'.panel-body > .chart-container',
|
||||
'.panel-body .chart-container',
|
||||
// eslint-disable-next-line camelcase
|
||||
slice?.slice_name ?? t('New chart'),
|
||||
{},
|
||||
|
|
Loading…
Reference in New Issue