[Alerting] AddAlert
flyout does not immediately update state to reflect new props
#64219
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Alerting
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
Kibana version:
8.x
Elasticsearch version:
8.x
Server OS version:
macOS
Browser version:
FireFox Developer Edition 76.x
Browser OS version:
macOS
Original install method (e.g. download page, yum, from source, etc.):
from source
Describe the bug:
When attempting to swap alert ID's in the
AddAlert
flyout, I have noticed that the internal state does not seem to reflect the props supplied to the component immediately. On a subsequent load, the state reflects the previously-provided props. Story example:undefined
as target alert type ID.alertTypeId
oftls-alert
. I don't see anything selected, because the flyout is still usingundefined
as the alert ID.Steps to reproduce:
You can see this issue by checking out #63913 and running it.
Expected behavior:
The selected alert type should always display the first time it is selected.
Screenshots (if relevant):
Errors in browser console (if relevant):
N/A
Provide logs and/or server output (if relevant):
N/A
Any additional context:
N/A
The text was updated successfully, but these errors were encountered: