Skip to content

Commit

Permalink
Add extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Mar 19, 2020
1 parent 07aa54f commit 585884e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const updateRules = async ({
tags: addTags(tags, rule.params.ruleId, immutable),
name,
schedule: { interval },
actions: actions.map(transformRuleToAlertAction) ?? rule.actions,
actions: actions?.map(transformRuleToAlertAction) ?? rule.actions,
throttle: throttle !== undefined ? throttle : rule.throttle,
params: {
description,
Expand Down

0 comments on commit 585884e

Please sign in to comment.