mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Provide correct field scoped vars for data links interpolation (#25318)
This commit is contained in:
parent
ed92b41d47
commit
0f5b894256
@ -118,8 +118,8 @@ describe('applyFieldOverrides', () => {
|
||||
"__field": Object {
|
||||
"text": "Field",
|
||||
"value": Object {
|
||||
"label": undefined,
|
||||
"labels": "",
|
||||
"formattedLabels": "",
|
||||
"labels": undefined,
|
||||
"name": "A message",
|
||||
},
|
||||
},
|
||||
@ -137,8 +137,8 @@ describe('applyFieldOverrides', () => {
|
||||
"__field": Object {
|
||||
"text": "Field",
|
||||
"value": Object {
|
||||
"label": undefined,
|
||||
"labels": "",
|
||||
"formattedLabels": "",
|
||||
"labels": undefined,
|
||||
"name": "B info",
|
||||
},
|
||||
},
|
||||
|
@ -112,8 +112,8 @@ export function applyFieldOverrides(options: ApplyFieldOverrideOptions): DataFra
|
||||
text: 'Field',
|
||||
value: {
|
||||
name: displayName, // Generally appropriate (may include the series name if useful)
|
||||
labels: formatLabels(field.labels!),
|
||||
label: field.labels,
|
||||
formattedLabels: formatLabels(field.labels!),
|
||||
labels: field.labels,
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user