[BUGFIX] Display of zero clients in node infobox
TypeError: "".toFixed is not a function
This commit is contained in:
parent
ecf8fe7ec4
commit
d9eabee466
@ -76,7 +76,7 @@ define(["sorttable", "virtual-dom", "helper"], function (SortTable, V, helper) {
|
|||||||
var td1 = V.h("td", td1Content);
|
var td1 = V.h("td", td1Content);
|
||||||
var td2 = V.h("td", showUptime(d.uptime));
|
var td2 = V.h("td", showUptime(d.uptime));
|
||||||
var td3 = V.h("td", d.meshlinks.toString());
|
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]);
|
return V.h("tr", [td0, td1, td2, td3, td4]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user