Skip to content

Commit

Permalink
fix: Chart download as image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
codemaster08240328 committed Apr 28, 2022
1 parent ae38411 commit 0b0868c
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 0b0868c

Please sign in to comment.