reporter/index.html.erb in kraken-mobile-1.0.1 vs reporter/index.html.erb in kraken-mobile-1.0.2

- old
+ new

@@ -641,10 +641,11 @@ devicesSet.add(link.owner); devicesHash[link.owner] = link.owner_model } devices = Array.from(devicesSet); // GRAPH - var height = 150*(devices.length-1); + let devicesLength = devices.length > 1 ? (devices.length-1) : 1; + var height = 150*devicesLength; var c20c = d3.scale.category10(); d3.select("#chart_row" + (i+1)) .text(jsonObject["name"]) let chartId = "#chart" + (i+1);