Skip to content

Commit e959d1a

Browse files
6543zeripath
andauthored
working part of #9998 (#10114)
Co-authored-by: zeripath <[email protected]>
1 parent 2c90338 commit e959d1a

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
@@ -538,13 +538,17 @@ func Issues(ctx *context.Context) {
538538
}
539539
}
540540

541-
issueStats, err := models.GetUserIssueStats(models.UserIssueStatsOptions{
541+
issueStatsOpts := models.UserIssueStatsOptions{
542542
UserID: ctxUser.ID,
543543
UserRepoIDs: userRepoIDs,
544544
FilterMode: filterMode,
545545
IsPull: isPullList,
546546
IsClosed: isShowClosed,
547-
})
547+
}
548+
if len(repoIDs) > 0 {
549+
issueStatsOpts.UserRepoIDs = repoIDs
550+
}
551+
issueStats, err := models.GetUserIssueStats(issueStatsOpts)
548552
if err != nil {
549553
ctx.ServerError("GetUserIssueStats", err)
550554
return

0 commit comments

Comments
 (0)