fix: resolves issue for migrated promql (#1481)

This commit is contained in:
Amol Umbark 2022-08-06 13:40:41 +05:30 committed by GitHub
parent 1ebf64589f
commit 8bdc41bef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,8 @@ function RuleOptions({
...alertDef,
condition: {
...alertDef.condition,
op: alertDef.condition?.op || defaultCompareOp,
matchType: alertDef.condition?.matchType || defaultMatchType,
target: value as number,
},
});