From 440be51a451baf08098501e300181cd77d798e11 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 18 Mar 2024 23:24:07 +0800 Subject: [PATCH] Fix bug on template (#29887) Caused by #29807 Fix #29886 --- templates/shared/issueicon.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/shared/issueicon.tmpl b/templates/shared/issueicon.tmpl index b8c03c6cb6894..94132825c4946 100644 --- a/templates/shared/issueicon.tmpl +++ b/templates/shared/issueicon.tmpl @@ -7,9 +7,9 @@ {{if .IsClosed}} {{svg "octicon-git-pull-request" 16 "text red"}} {{else}} - {{if and .PullRequest .PullRequest.IsWorkInProgress ctx}} + {{if and .PullRequest (.PullRequest.IsWorkInProgress ctx)}} {{svg "octicon-git-pull-request-draft" 16 "text grey"}} - {{else if and .GetPullRequest .GetPullRequest.IsWorkInProgress ctx}} + {{else if and .GetPullRequest (.GetPullRequest.IsWorkInProgress ctx)}} {{svg "octicon-git-pull-request-draft" 16 "text grey"}} {{else}} {{svg "octicon-git-pull-request" 16 "text green"}}