diff --git a/src/plugins/highcharts/renderer/components/HighchartsComponent.tsx b/src/plugins/highcharts/renderer/components/HighchartsComponent.tsx index 0c9c1536..f7a07e90 100644 --- a/src/plugins/highcharts/renderer/components/HighchartsComponent.tsx +++ b/src/plugins/highcharts/renderer/components/HighchartsComponent.tsx @@ -163,7 +163,7 @@ export class HighchartsComponent extends React.PureComponent { constructorType={options?.useHighStock ? 'stockChart' : 'chart'} containerProps={{className: 'chartkit-graph'}} ref={this.chartComponent} - onRender={this.needRenderCallback() && this.props.onRender} + onRender={this.needRenderCallback() ? this.props.onRender : undefined} /> ); }