Browse Source

FIX render commit bug for sub entries api

tags/v1.0.0
Jasder 5 years ago
parent
commit
fa6b25a22d
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/views/repositories/_simple_entry.json.jbuilder

+ 5
- 1
app/views/repositories/_simple_entry.json.jbuilder View File

@@ -15,7 +15,11 @@ if @project.forge?
json.image_type image_type
json.is_readme_file is_readme_type?(file_name)
if entry['latest_commit']
json.partial! 'last_commit', entry: entry
if entry['type'] != 'file'
json.partial! 'last_commit', entry: entry
else
json.commit nil
end
end
end



Loading…
Cancel
Save