fixed inactive state bug

This commit is contained in:
cubedro 2015-04-24 13:33:50 +03:00
parent c11725b701
commit b27a8cff86
1 changed files with 2 additions and 1 deletions

View File

@ -142,7 +142,8 @@ function StatsCtrl($scope, $filter, socket, _, toastr) {
break;
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!");
break;