Skip to content

Commit

Permalink
fix(anomaly detection): set resolve threshold to null if anomaly dete…
Browse files Browse the repository at this point in the history
…ction alert (#76682)

Check the title /ᐠ - ˕ -マ Ⳋ
  • Loading branch information
mifu67 authored Aug 28, 2024
1 parent e070747 commit f4178f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion static/app/views/alerts/rules/metric/ruleForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,11 @@ class RuleFormContainer extends DeprecatedAsyncComponent<Props, State> {
...activatedAlertFields,
projects: [project.slug],
triggers: sanitizedTriggers,
resolveThreshold: isEmpty(resolveThreshold) ? null : resolveThreshold,
resolveThreshold:
isEmpty(resolveThreshold) ||
detectionType === AlertRuleComparisonType.DYNAMIC
? null
: resolveThreshold,
thresholdType,
thresholdPeriod,
comparisonDelta: comparisonDelta ?? null,
Expand Down

0 comments on commit f4178f5

Please sign in to comment.