fix: Chart download as image issue (#19885)

This commit is contained in:
Smart-Codi 2022-04-29 14:23:54 -04:00 committed by GitHub
parent 9328053521
commit c2999fdc22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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'),
{},