Skip to content

Commit

Permalink
[Custom threshold] Fix the custom equation label on the preview lens …
Browse files Browse the repository at this point in the history
  • Loading branch information
maryam-saeidi authored Nov 12, 2024
1 parent 13ae986 commit 8668757
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export interface RuleConditionChartExpressions {
timeSize?: number;
timeUnit?: TimeUnitChar;
equation?: string;
label?: string;
}
export interface RuleConditionChartProps {
metricExpression: RuleConditionChartExpressions;
Expand Down Expand Up @@ -108,6 +109,7 @@ export function RuleConditionChart({
threshold,
comparator,
equation,
label,
warningComparator,
warningThreshold,
} = metricExpression;
Expand Down Expand Up @@ -332,7 +334,7 @@ export function RuleConditionChart({
const baseLayer = {
type: 'formula',
value: formula,
label: formula,
label: label ?? formula,
groupBy,
format: {
id: formatId,
Expand Down Expand Up @@ -409,6 +411,7 @@ export function RuleConditionChart({
comparator,
dataView,
equation,
label,
searchConfiguration,
formula,
formulaAsync.value,
Expand Down

0 comments on commit 8668757

Please sign in to comment.