Fix occasional console errors in issue pages
What does this MR do and why?
Fix occasional console errors in issue pages
This was originally fixed in !53842 (merged), but got broken again in !86296 (merged).
This change encapsulates the conditional check in a function, reducing the likelihood of another regression.
Screenshots or screen recordings
n/a
How to set up and validate locally
- Visit an issue page
- Follow these steps
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mark Florian