Check job_type as well as !project

This commit is contained in:
Michael Abashian 2017-02-10 20:16:34 -05:00
parent 40c50300f7
commit 1df4adc957

View File

@ -53,7 +53,7 @@ export default
$scope.parseType = 'yaml';
$scope.showJobType = false;
if(!$scope.project) {
if($scope.job_type && $scope.job_type.value === 'scan' && !$scope.project) {
$scope.project_name = 'Default';
}