Skip to content

Commit

Permalink
fix form submission for threshold rule type
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpn committed Nov 3, 2024
1 parent 157c71c commit 0cd126f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,9 @@ export const formatDefineStepData = (defineStepData: DefineStepRule): DefineStep
}),
};

// Threshold rule won't contain alert suppression fields
const alertSuppressionFields =
ruleFields[ALERT_SUPPRESSION_FIELDS].length > 0
ruleFields[ALERT_SUPPRESSION_FIELDS]?.length > 0
? {
alert_suppression: {
group_by: ruleFields[ALERT_SUPPRESSION_FIELDS],
Expand Down

0 comments on commit 0cd126f

Please sign in to comment.