From 8bdc41bef08d4a7c4b740769aadb0fc447e356e1 Mon Sep 17 00:00:00 2001 From: Amol Umbark Date: Sat, 6 Aug 2022 13:40:41 +0530 Subject: [PATCH] fix: resolves issue for migrated promql (#1481) --- frontend/src/container/FormAlertRules/RuleOptions.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/container/FormAlertRules/RuleOptions.tsx b/frontend/src/container/FormAlertRules/RuleOptions.tsx index 8794f87b2c..968ce695e3 100644 --- a/frontend/src/container/FormAlertRules/RuleOptions.tsx +++ b/frontend/src/container/FormAlertRules/RuleOptions.tsx @@ -156,6 +156,8 @@ function RuleOptions({ ...alertDef, condition: { ...alertDef.condition, + op: alertDef.condition?.op || defaultCompareOp, + matchType: alertDef.condition?.matchType || defaultMatchType, target: value as number, }, });