Skip to content

Commit c9e8667

Browse files
initialize settings to any empty object if it's null
1 parent ded3ab4 commit c9e8667

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/render.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
series = chart.series;
1414
data = chart.data;
1515
settings = chart.settings;
16+
if(settings == null){
17+
settings = {};
18+
}
1619

1720
container = document.getElementById(id);
1821
if (container == null) {

0 commit comments

Comments
 (0)