Browse Source

fixed fork列表中存在组织时显示错误

pull/313/head
xiaoxiaoqiong 4 years ago
parent
commit
1dd3fbc69a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/projects/fork_users.json.jbuilder

+ 1
- 1
app/views/projects/fork_users.json.jbuilder View File

@@ -1,7 +1,7 @@
json.count @forks_count
json.users do
json.array! @fork_users.each do |f|
user = f.user
user = f.user.present? ? f.user : Organization.find_by(id: f.user_id)
json.id f.fork_project.id
json.identifier f.fork_project.identifier
json.name "#{user.try(:show_real_name)}/#{f.fork_project.try(:name)}"


Loading…
Cancel
Save