fixed inactive state bug

This commit is contained in:
cubedro 2015-04-24 13:33:50 +03:00
parent c11725b701
commit b27a8cff86

View File

@ -142,7 +142,8 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
break; break;
case "inactive": case "inactive":
$scope.nodes[findIndex({id: data.id})].stats = data.stats; if(typeof data.stats !== 'undefined')
$scope.nodes[findIndex({id: data.id})].stats = data.stats;
toastr['error']("Node "+ $scope.nodes[findIndex({id: data.id})].info.name +" went away!", "Node connection was lost!"); toastr['error']("Node "+ $scope.nodes[findIndex({id: data.id})].info.name +" went away!", "Node connection was lost!");
break; break;