Skip to content

Commit

Permalink
Fixed set default on alert type select
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Feb 13, 2020
1 parent e0f1246 commit aab2e51
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ export const AlertForm = ({
onClick={() => {
setAlertProperty('alertTypeId', item.id);
setAlertTypeModel(item);
if (
if (item.defaultActionGroup) {
setDefaultActionGroup(item.defaultActionGroup);
} else if (
!alertTypeModel?.defaultActionGroup &&
alertTypesIndex &&
alertTypesIndex[item.id] &&
Expand Down

0 comments on commit aab2e51

Please sign in to comment.