[BUGFIX] Display of zero clients in node infobox

TypeError: "".toFixed is not a function
This commit is contained in:
Geno 2017-01-21 16:11:38 +01:00 committed by Xaver Maierhofer
parent ecf8fe7ec4
commit d9eabee466
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ define(["sorttable", "virtual-dom", "helper"], function (SortTable, V, helper) {
var td1 = V.h("td", td1Content);
var td2 = V.h("td", showUptime(d.uptime));
var td3 = V.h("td", d.meshlinks.toString());
var td4 = V.h("td", ("clients" in d.statistics ? d.statistics.clients : "").toFixed(0));
var td4 = V.h("td", Number("clients" in d.statistics ? d.statistics.clients : 0).toFixed(0));
return V.h("tr", [td0, td1, td2, td3, td4]);
}