Skip to content

Commit 64a4096

Browse files
authored
Fix new release from tags list UI (#19670)
1 parent 65ccff5 commit 64a4096

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

routers/web/repo/release.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,9 @@ func NewRelease(ctx *context.Context) {
279279
}
280280

281281
ctx.Data["tag_name"] = rel.TagName
282-
ctx.Data["tag_target"] = rel.Target
282+
if rel.Target != "" {
283+
ctx.Data["tag_target"] = rel.Target
284+
}
283285
ctx.Data["title"] = rel.Title
284286
ctx.Data["content"] = rel.Note
285287
ctx.Data["attachments"] = rel.Attachments

0 commit comments

Comments
 (0)