mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
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,
|
onOpenInEditor: PropTypes.func,
|
||||||
latestQueryFormData: PropTypes.object.isRequired,
|
latestQueryFormData: PropTypes.object.isRequired,
|
||||||
slice: PropTypes.object,
|
slice: PropTypes.object,
|
||||||
|
canDownloadCSV: PropTypes.bool,
|
||||||
|
canAddReports: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
const MENU_KEYS = {
|
const MENU_KEYS = {
|
||||||
@ -215,7 +217,7 @@ const ExploreAdditionalActionsMenu = ({
|
|||||||
break;
|
break;
|
||||||
case MENU_KEYS.DOWNLOAD_AS_IMAGE:
|
case MENU_KEYS.DOWNLOAD_AS_IMAGE:
|
||||||
downloadAsImage(
|
downloadAsImage(
|
||||||
'.panel-body > .chart-container',
|
'.panel-body .chart-container',
|
||||||
// eslint-disable-next-line camelcase
|
// eslint-disable-next-line camelcase
|
||||||
slice?.slice_name ?? t('New chart'),
|
slice?.slice_name ?? t('New chart'),
|
||||||
{},
|
{},
|
||||||
|
Loading…
Reference in New Issue
Block a user