This commit is contained in:
silverwind 2024-04-26 13:29:05 +02:00
parent 73937a5204
commit 33d4ed973f
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
1 changed files with 1 additions and 3 deletions

View File

@ -419,9 +419,7 @@ func DiffPreviewPost(ctx *context.Context) {
return
}
if diff.NumFiles == 0 {
ctx.Data["File"] = nil
} else {
if diff.NumFiles != 0 {
ctx.Data["File"] = diff.Files[0]
}