Skip to content

Commit 585884e

Browse files
Add extra check
1 parent 07aa54f commit 585884e

File tree

1 file changed

+1
-1
lines changed
  • x-pack/legacy/plugins/siem/server/lib/detection_engine/rules

1 file changed

+1
-1
lines changed

x-pack/legacy/plugins/siem/server/lib/detection_engine/rules/update_rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const updateRules = async ({
9292
tags: addTags(tags, rule.params.ruleId, immutable),
9393
name,
9494
schedule: { interval },
95-
actions: actions.map(transformRuleToAlertAction) ?? rule.actions,
95+
actions: actions?.map(transformRuleToAlertAction) ?? rule.actions,
9696
throttle: throttle !== undefined ? throttle : rule.throttle,
9797
params: {
9898
description,

0 commit comments

Comments
 (0)