Skip to content

Commit

Permalink
set resolve threshold to null if alert is dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
mifu67 committed Aug 28, 2024
1 parent faeb0ee commit 18c30a9
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 @@ -806,7 +806,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 18c30a9

Please sign in to comment.