mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX render commit bug for sub entries api
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user