fixed inactive state bug
This commit is contained in:
parent
c11725b701
commit
b27a8cff86
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user