Expression: Fix a bug of the display name of the threshold expression result (#85912)
* replace ReferenceVar with RefID when creating the math command for the ThresholdCommand * Fix the Hysteresis test
This commit is contained in:
@@ -120,7 +120,7 @@ func (tc *ThresholdCommand) Execute(ctx context.Context, now time.Time, vars mat
|
||||
return mathexp.Results{}, err
|
||||
}
|
||||
|
||||
mathCommand, err := NewMathCommand(tc.ReferenceVar, mathExpression)
|
||||
mathCommand, err := NewMathCommand(tc.RefID, mathExpression)
|
||||
if err != nil {
|
||||
return mathexp.Results{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user