Add test for missing data_type

parent a5b92edc
...@@ -109,7 +109,7 @@ c3_chart_fn.setValue = function(id, i, value){ ...@@ -109,7 +109,7 @@ c3_chart_fn.setValue = function(id, i, value){
} }
}); });
if($$.config.data_type.indexOf('pie') !== -1){ if(typeof $$.config.data_type === 'string' && $$.config.data_type.indexOf('pie') !== -1){
i = 0; i = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment