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) {
|
socket.on('instance docker ports', function(status) {
|
||||||
|
if ($scope.idx[status.instance]) {
|
||||||
$scope.idx[status.instance].ports = status.ports;
|
$scope.idx[status.instance].ports = status.ports;
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('instance docker swarm ports', function(status) {
|
socket.on('instance docker swarm ports', function(status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user