From 7eb0675be067e5c97e1e1559c176c80806d0c77a Mon Sep 17 00:00:00 2001 From: Milan Pssler Date: Sun, 6 Nov 2016 17:06:41 +0100 Subject: [PATCH] fix meshclients for orange nodes --- lib/infobox/node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/infobox/node.js b/lib/infobox/node.js index d7a5acd..0e7e993 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -157,7 +157,9 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"], } function getMeshClients(node) { - var meshclients = node.statistics.clients + var meshclients = 0 + if (node.statistics && !isNaN(node.statistics.clients)) + meshclients = node.statistics.clients if (!node) return 0