Skip to content

Commit 440be51

Browse files
authored
Fix bug on template (#29887)
Caused by #29807 Fix #29886
1 parent 00ea9af commit 440be51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/shared/issueicon.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
{{if .IsClosed}}
88
{{svg "octicon-git-pull-request" 16 "text red"}}
99
{{else}}
10-
{{if and .PullRequest .PullRequest.IsWorkInProgress ctx}}
10+
{{if and .PullRequest (.PullRequest.IsWorkInProgress ctx)}}
1111
{{svg "octicon-git-pull-request-draft" 16 "text grey"}}
12-
{{else if and .GetPullRequest .GetPullRequest.IsWorkInProgress ctx}}
12+
{{else if and .GetPullRequest (.GetPullRequest.IsWorkInProgress ctx)}}
1313
{{svg "octicon-git-pull-request-draft" 16 "text grey"}}
1414
{{else}}
1515
{{svg "octicon-git-pull-request" 16 "text green"}}

0 commit comments

Comments
 (0)