Skip to content

Commit

Permalink
restore ruleForm.tsx (fix bugs later)
Browse files Browse the repository at this point in the history
  • Loading branch information
mifu67 committed Aug 27, 2024
1 parent 546b384 commit d161b90
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions static/app/views/alerts/rules/metric/ruleForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,13 @@ class RuleFormContainer extends DeprecatedAsyncComponent<Props, State> {
metricExtractionRules: null,
triggers: triggersClone,
resolveThreshold: rule.resolveThreshold,
sensitivity: rule.sensitivity || null,
sensitivity: null,
thresholdType: rule.thresholdType,
thresholdPeriod: rule.thresholdPeriod ?? 1,
comparisonDelta: rule.comparisonDelta ?? undefined,
comparisonType: rule.comparisonDelta
? AlertRuleComparisonType.CHANGE
: rule.sensitivity
? AlertRuleComparisonType.DYNAMIC
: AlertRuleComparisonType.COUNT,
: AlertRuleComparisonType.COUNT,
project: this.props.project,
owner: rule.owner,
alertType: getAlertTypeFromAggregateDataset({aggregate, dataset}),
Expand Down

0 comments on commit d161b90

Please sign in to comment.