Commit 0f5b8942 by Dominik Prokop Committed by GitHub

Provide correct field scoped vars for data links interpolation (#25318)

parent ed92b41d
......@@ -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,
},
};
......
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