From 8ab8cb6885ec6594c110e4fd056460c23b20536c Mon Sep 17 00:00:00 2001 From: Tyrone Yeh Date: Thu, 5 Feb 2026 14:50:58 +0800 Subject: [PATCH] Fix issues filter dropdown showing empty label scope section --- templates/repo/issue/filter_list.tmpl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/repo/issue/filter_list.tmpl b/templates/repo/issue/filter_list.tmpl index bfdf94513ed7e..957b8d10aad02 100644 --- a/templates/repo/issue/filter_list.tmpl +++ b/templates/repo/issue/filter_list.tmpl @@ -133,11 +133,13 @@ {{ctx.Locale.Tr "repo.issues.filter_sort.leastcomment"}} {{ctx.Locale.Tr "repo.issues.filter_sort.nearduedate"}} {{ctx.Locale.Tr "repo.issues.filter_sort.farduedate"}} -
-
{{ctx.Locale.Tr "repo.issues.filter_label"}}
- {{range $scope := .ExclusiveLabelScopes}} - {{$sortType := (printf "scope-%s" $scope)}} - {{$scope}} + {{if .ExclusiveLabelScopes}} +
+
{{ctx.Locale.Tr "repo.issues.filter_label"}}
+ {{range $scope := .ExclusiveLabelScopes}} + {{$sortType := (printf "scope-%s" $scope)}} + {{$scope}} + {{end}} {{end}}