Skip to content

Commit

Permalink
fix: add check if chart exists before adjust font size (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marginy605 authored Feb 21, 2023
1 parent 80b024d commit 451e3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/highcharts/renderer/helpers/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ function fixTooltipOnClick(event, {options}) {
}

function adjustDonutFontSize(chart, chartSeries, innerWidth, totals) {
if (!totals) {
if (!totals || !chart || !chartSeries) {
return;
}
const MIN_ACCEPTABLE_INNER_SIZE = 400;
Expand Down

0 comments on commit 451e3c1

Please sign in to comment.