Skip to content

Commit a0894a5

Browse files
Fix chartJs javascript error Codeinwp/visualizer-pro#345
1 parent 622e2cf commit a0894a5

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)