修改numerical_for_project_type for nil

This commit is contained in:
sylor_huang@126.com 2020-06-05 11:00:55 +08:00
parent c5c3294bda
commit b26f54b33d
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ json.praises_count project.praises_count.to_i
json.forked_count project.forked_count.to_i
json.is_public project.is_public
json.mirror_url project.repository&.mirror_url
json.type project.numerical_for_project_type
json.type project&.numerical_for_project_type
json.last_update_time render_unix_time(project.updated_on)
json.time_ago time_from_now(project.updated_on)
json.forked_from_project_id project.forked_from_project_id