mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(container/edit): fallback value when retrieving GPU config without snapshot available [EE-4110] (#7570)
This commit is contained in:
parent
c79be58700
commit
2f0dbf2ae1
1 changed files with 2 additions and 2 deletions
|
@ -823,8 +823,8 @@ angular.module('portainer.docker').controller('CreateContainerController', [
|
|||
function (d) {
|
||||
var containers = d;
|
||||
$scope.runningContainers = containers;
|
||||
$scope.gpuUseAll = $scope.endpoint.Snapshots[0].GpuUseAll;
|
||||
$scope.gpuUseList = $scope.endpoint.Snapshots[0].GpuUseList;
|
||||
$scope.gpuUseAll = _.get($scope, 'endpoint.Snapshots[0].GpuUseAll', false);
|
||||
$scope.gpuUseList = _.get($scope, 'endpoint.Snapshots[0].GpuUseList', []);
|
||||
if ($transition$.params().from) {
|
||||
loadFromContainerSpec();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue