mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 07:15:23 +02:00
fix(gpu): EE-3743 gpus null error (#7342)
This commit is contained in:
parent
ce22544c60
commit
44737029a9
3 changed files with 4 additions and 4 deletions
|
@ -175,7 +175,7 @@ function EndpointController(
|
|||
}
|
||||
|
||||
function verifyGpus() {
|
||||
var i = $scope.endpoint.Gpus.length;
|
||||
var i = ($scope.endpoint.Gpus || []).length;
|
||||
while (i--) {
|
||||
if ($scope.endpoint.Gpus[i].name === '' || $scope.endpoint.Gpus[i].name === null) {
|
||||
$scope.endpoint.Gpus.splice(i, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue