Skip to content

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

2023-05-01_11.47.13

You may compare with the screens shown at: #409335 (closed)

How to set up and validate locally

  1. Visit Admin > CI/CD > Runners
  2. Open the modal: "Show runner installation and registration instructions" in the right side menu
  3. Close the modal
  4. Change a filter
  5. 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.

Related to #409335 (closed)

Merge request reports