Explorar el Código

FieldDisplay: Update title variable syntax (#19217)

Ryan McKinley hace 6 años
padre
commit
14f1cf29f0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/grafana-ui/src/utils/fieldDisplay.ts

+ 2 - 2
packages/grafana-ui/src/utils/fieldDisplay.ts

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