Skip to content

Commit

Permalink
FieldDisplay: Update title variable syntax (#19217)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantxu authored and torkelo committed Sep 19, 2019
1 parent c4e8f6e commit 14f1cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grafana-ui/src/utils/fieldDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ');
}
Expand Down

0 comments on commit 14f1cf2

Please sign in to comment.