From b8a18f45fc40ce489b0aa7ebec49e2f1721f49d9 Mon Sep 17 00:00:00 2001 From: Yuliia Naumenko Date: Thu, 6 Feb 2020 11:29:54 -0800 Subject: [PATCH] Fixed case for default alert type id was set --- .../public/application/sections/alert_add/alert_form.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/legacy/plugins/triggers_actions_ui/np_ready/public/application/sections/alert_add/alert_form.tsx b/x-pack/legacy/plugins/triggers_actions_ui/np_ready/public/application/sections/alert_add/alert_form.tsx index 49fe4d9101631..d559b7d884b3e 100644 --- a/x-pack/legacy/plugins/triggers_actions_ui/np_ready/public/application/sections/alert_add/alert_form.tsx +++ b/x-pack/legacy/plugins/triggers_actions_ui/np_ready/public/application/sections/alert_add/alert_form.tsx @@ -177,6 +177,9 @@ export const AlertForm = ({ for (const alertTypeItem of alertTypes) { index[alertTypeItem.id] = alertTypeItem; } + if (alert.alertTypeId) { + setDefaultActionGroup(index[alert.alertTypeId].actionGroups[0]); + } setAlertTypesIndex(index); } catch (e) { if (toastNotifications) {