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

  1. Visit an issue page
  2. 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.

Edited by Mark Florian

Merge request reports

Loading