Prevent errors when focusing platform button
What does this MR do and why?
This change prevents changes in the apollo cache from causing errors in the runner instructions modal.
Previously, it was assumed that an element was always focusable, this change adds a check to ensure the element is not focused when its' not available.
Changelog: fixed
Screenshots or screen recordings
You may compare with the screens shown at: #409335 (closed)
How to set up and validate locally
- Visit Admin > CI/CD > Runners
- Open the modal: "Show runner installation and registration instructions" in the right side menu
- Close the modal
- Change a filter
- Confirm the browser has no errors
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.
Related to #409335 (closed)