diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl index f9bc0ebb029eb..5f06bf45d4098 100644 --- a/templates/repo/release/list.tmpl +++ b/templates/repo/release/list.tmpl @@ -82,7 +82,9 @@ {{svg "octicon-git-commit" 16 "mr-2"}}{{ShortSha .Sha1}} {{end}} - {{template "repo/branch_dropdown" dict "root" $ "release" .}} + {{if .Sha1 }} + {{template "repo/branch_dropdown" dict "root" $ "release" .}} + {{end}} {{end}}