Skip to content

Commit 6896dad

Browse files
6543zeripath
andauthored
working part of #9998 (#10114) (#10115)
Co-authored-by: zeripath <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent 1ed4323 commit 6896dad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

routers/user/home.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,13 +525,17 @@ func Issues(ctx *context.Context) {
525525
}
526526
}
527527

528-
issueStats, err := models.GetUserIssueStats(models.UserIssueStatsOptions{
528+
issueStatsOpts := models.UserIssueStatsOptions{
529529
UserID: ctxUser.ID,
530530
UserRepoIDs: userRepoIDs,
531531
FilterMode: filterMode,
532532
IsPull: isPullList,
533533
IsClosed: isShowClosed,
534-
})
534+
}
535+
if len(repoIDs) > 0 {
536+
issueStatsOpts.UserRepoIDs = repoIDs
537+
}
538+
issueStats, err := models.GetUserIssueStats(issueStatsOpts)
535539
if err != nil {
536540
ctx.ServerError("GetUserIssueStats", err)
537541
return

0 commit comments

Comments
 (0)