mirror of https://github.com/portainer/portainer
				
				
				
			fix(container/edit): fallback value when retrieving GPU config without snapshot available [EE-4110] (#7570)
							parent
							
								
									c79be58700
								
							
						
					
					
						commit
						2f0dbf2ae1
					
				|  | @ -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…
	
		Reference in New Issue
	
	 LP B
						LP B