Make sure instance exists before trying to change it's ports
This commit is contained in:
@@ -320,8 +320,10 @@
|
||||
});
|
||||
|
||||
socket.on('instance docker ports', function(status) {
|
||||
if ($scope.idx[status.instance]) {
|
||||
$scope.idx[status.instance].ports = status.ports;
|
||||
$scope.$apply();
|
||||
}
|
||||
});
|
||||
|
||||
socket.on('instance docker swarm ports', function(status) {
|
||||
|
||||
Reference in New Issue
Block a user