Skip to content

Commit dbae93f

Browse files
Merge pull request #939 from Codeinwp/bugfix/pro/345
Fix chartJs javascript error when rendering multiple charts
2 parents c70cec8 + a0894a5 commit dbae93f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/render-chartjs.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@
113113

114114
handleSettings(settings, chart);
115115

116+
const getChart = Chart.getChart(context);
117+
if ( getChart ) {
118+
return;
119+
}
120+
116121
var chartjs = new Chart(context, {
117122
type: type,
118123
data: {

0 commit comments

Comments
 (0)