fixed app crash if edit empty project from admin
This commit is contained in:
parent
d4ebde9378
commit
fc058605c2
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
|||
= f.label :owner_id
|
||||
.input= f.select :owner_id, User.all.map { |user| [user.name, user.id] }
|
||||
|
||||
- unless @admin_project.heads.empty?
|
||||
- if @admin_project.repo_exists?
|
||||
.clearfix
|
||||
= f.label :default_branch, "Default Branch"
|
||||
.input= f.select(:default_branch, @admin_project.heads.map(&:name), {}, :style => "width:210px;")
|
||||
|
|
Loading…
Reference in a new issue