app/views/mail_engine/dashboard/index.html.erb in mail_engine-0.1.14 vs app/views/mail_engine/dashboard/index.html.erb in mail_engine-0.1.15

- old
+ new

@@ -10,10 +10,10 @@ data.addRows(<%= @pie_chart_columns.size %>); <% @pie_chart_columns.each_with_index do |col, i| %> data.setValue(<%= i %>, 0, "<%= col %>"); - data.setValue(<%= i %>, 1, <%= @data_of_today[col] %>); + data.setValue(<%= i %>, 1, <%= @data_of_today[col]||0 %>); <% end %> var chart = new google.visualization.PieChart(document.getElementById('pie_chart')); chart.draw(data, {width: 350, height: 300, chartArea: {left:0,top:0,right:0,bottom:0, width:"100%",height:"100%"} }); } \ No newline at end of file