From d161b900b04a09c61f0b4ce67d27380513ec39bf Mon Sep 17 00:00:00 2001 From: Michelle Fu Date: Tue, 27 Aug 2024 14:01:20 -0700 Subject: [PATCH] restore ruleForm.tsx (fix bugs later) --- static/app/views/alerts/rules/metric/ruleForm.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/app/views/alerts/rules/metric/ruleForm.tsx b/static/app/views/alerts/rules/metric/ruleForm.tsx index fba7a260f12a9..b0bb7d2d304c9 100644 --- a/static/app/views/alerts/rules/metric/ruleForm.tsx +++ b/static/app/views/alerts/rules/metric/ruleForm.tsx @@ -237,15 +237,13 @@ class RuleFormContainer extends DeprecatedAsyncComponent { 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}),