summaryrefslogtreecommitdiffstats
path: root/routers/web/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-05-10 20:41:37 +0800
committerGitHub <noreply@github.com>2022-05-10 15:41:37 +0300
commit64a40962ccfd34ba4a5a64e623e59d00a32318c0 (patch)
treec5f4225d2070c1b450ff4561317c388b1a83fe22 /routers/web/repo
parent65ccff54efad84e3ff76547ce5f1b135b6a3e943 (diff)
downloadgitea-64a40962ccfd34ba4a5a64e623e59d00a32318c0.tar.gz
gitea-64a40962ccfd34ba4a5a64e623e59d00a32318c0.zip
Fix new release from tags list UI (#19670)
Diffstat (limited to 'routers/web/repo')
-rw-r--r--routers/web/repo/release.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/web/repo/release.go b/routers/web/repo/release.go
index 5f894ae501..ebc6500802 100644
--- a/routers/web/repo/release.go
+++ b/routers/web/repo/release.go
@@ -279,7 +279,9 @@ func NewRelease(ctx *context.Context) {
}
ctx.Data["tag_name"] = rel.TagName
- ctx.Data["tag_target"] = rel.Target
+ if rel.Target != "" {
+ ctx.Data["tag_target"] = rel.Target
+ }
ctx.Data["title"] = rel.Title
ctx.Data["content"] = rel.Note
ctx.Data["attachments"] = rel.Attachments