Skip to content

Commit

Permalink
Fixed case for default alert type id was set
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Feb 6, 2020
1 parent 2bd5bef commit b8a18f4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b8a18f4

Please sign in to comment.