From d9eabee46660f8f261ce9dc84d5815262d230964 Mon Sep 17 00:00:00 2001 From: Geno Date: Sat, 21 Jan 2017 16:11:38 +0100 Subject: [PATCH] [BUGFIX] Display of zero clients in node infobox TypeError: "".toFixed is not a function --- lib/nodelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nodelist.js b/lib/nodelist.js index 1056323..fdf1f71 100644 --- a/lib/nodelist.js +++ b/lib/nodelist.js @@ -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]); }