Skip to content

Commit

Permalink
fix: Chart download as image issue (apache#19885)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemaster08240328 committed Apr 29, 2022
1 parent 9328053 commit c2999fd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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'),
{},
Expand Down

0 comments on commit c2999fd

Please sign in to comment.