FieldDisplay: Update title variable syntax (#19217)

This commit is contained in:
Ryan McKinley 2019-09-18 23:17:15 -07:00 committed by Torkel Ödegaard
parent c4e8f6e809
commit 14f1cf29f0

View File

@ -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(' ');
}