Commit 14f1cf29 by Ryan McKinley Committed by Torkel Ödegaard

FieldDisplay: Update title variable syntax (#19217)

parent c4e8f6e8
......@@ -50,13 +50,13 @@ function getTitleTemplate(title: string | undefined, stats: string[], data?: Dat
const parts: string[] = [];
if (stats.length > 1) {
parts.push('$' + VAR_CALC);
parts.push('${' + VAR_CALC + '}');
}
if (data.length > 1) {
parts.push('${' + VAR_SERIES_NAME + '}');
}
if (fieldCount > 1 || !parts.length) {
parts.push('$' + VAR_FIELD_NAME);
parts.push('${' + VAR_FIELD_NAME + '}');
}
return parts.join(' ');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment