fix meshclients for orange nodes

This commit is contained in:
Milan Pssler 2016-11-06 17:06:41 +01:00
parent 1641bc2437
commit 7eb0675be0

View file

@ -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