Fix error when modal is unmounted during delete
requested to merge 391204-typeerror-a-onconfirmdelete-typeerror-cannot-read-properties-of-undefined-reading-hide into master
What does this MR do and why?
Before deleting runners, we confirm this action via a modal.
This fix ensures the modal is always mounted, even after runners are deleted, so the modal can be hidden correctly.
Changelog: fixed
Screenshots or screen recordings
Before
After
How to set up and validate locally
Open your browser console to see the issue.
- Visit the admin area
- Selecte CI/CD -> Runners, e.g. http://gdk.test:3000/admin/runners?runner_type[]=PROJECT_TYPE
- Select a few runners with the checkboxes on the left
- Delete them
- Check the there are 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 #391204 (closed)