[#369] new build list: fix selecting a version

This commit is contained in:
Alexander Machehin 2015-02-04 20:36:17 +05:00
parent 2ca7c72c89
commit c0834523b0
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ NewBuildListController = (dataservice, $http) ->
result = _.select(vm.project_versions, (e) -> result = _.select(vm.project_versions, (e) ->
e.name is vm.project_version_name e.name is vm.project_version_name
) )
return vm.project_versions[0] if result.length is 0 return defaultProjectVersion() if result.length is 0
result[0] result[0]
changeStatusRepositories = -> changeStatusRepositories = ->