fix(container-creation): validate runtime property (#3581)

Co-authored-by: linquize <linquize2@yahoo.com>
pull/2776/head
xAt0mZ 2020-02-26 04:31:59 +01:00 committed by GitHub
parent 8d7bae0560
commit bfdb4dba12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ function ($q, $scope, $async, $state, $timeout, $transition$, $filter, Container
SystemService.info() SystemService.info()
.then(function success(data) { .then(function success(data) {
$scope.availableRuntimes = Object.keys(data.Runtimes); $scope.availableRuntimes = data.Runtimes ? Object.keys(data.Runtimes) : [];
$scope.config.HostConfig.Runtime = ''; $scope.config.HostConfig.Runtime = '';
$scope.state.sliderMaxCpu = 32; $scope.state.sliderMaxCpu = 32;
if (data.NCPU) { if (data.NCPU) {