Skip to content

Commit

Permalink
Use correct index when fetching commit status
Browse files Browse the repository at this point in the history
Signed-off-by: Elias Norberg <elias@aisle.se>
  • Loading branch information
yzzyx committed Oct 1, 2019
1 parent 7156e2a commit c53521f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/repo/issue/list.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@
<a class="title has-emoji" href="{{$.Link}}/{{.Index}}">{{.Title}}</a>

{{if .IsPull }}
{{if (index $.CommitStatus .ID)}}
{{template "repo/commit_status" (index $.CommitStatus .ID)}}
{{if (index $.CommitStatus .PullRequest.ID)}}
{{template "repo/commit_status" (index $.CommitStatus .PullRequest.ID)}}
{{end}}
{{end}}

Expand Down

0 comments on commit c53521f

Please sign in to comment.