Skip to content

Fix crash if createAlert dismissed multiple times

What does this MR do and why?

If an alert, generated by createAlert, is dismissed multiple times it throws an error. This fixes this problem.

This situation raises when the user manually dismiss the alert, but there is a programmatic dismiss that clears the alert. One could track this situation with onDismiss but I think it is a little bit cumbersome. I would rather made the dismiss method more robust.

Screenshots or screen recordings

No visible changes.

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 Eduardo Sanz García

Merge request reports

Loading