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', () => { ...@@ -118,8 +118,8 @@ describe('applyFieldOverrides', () => {
"__field": Object { "__field": Object {
"text": "Field", "text": "Field",
"value": Object { "value": Object {
"label": undefined, "formattedLabels": "",
"labels": "", "labels": undefined,
"name": "A message", "name": "A message",
}, },
}, },
...@@ -137,8 +137,8 @@ describe('applyFieldOverrides', () => { ...@@ -137,8 +137,8 @@ describe('applyFieldOverrides', () => {
"__field": Object { "__field": Object {
"text": "Field", "text": "Field",
"value": Object { "value": Object {
"label": undefined, "formattedLabels": "",
"labels": "", "labels": undefined,
"name": "B info", "name": "B info",
}, },
}, },
......
...@@ -112,8 +112,8 @@ export function applyFieldOverrides(options: ApplyFieldOverrideOptions): DataFra ...@@ -112,8 +112,8 @@ export function applyFieldOverrides(options: ApplyFieldOverrideOptions): DataFra
text: 'Field', text: 'Field',
value: { value: {
name: displayName, // Generally appropriate (may include the series name if useful) name: displayName, // Generally appropriate (may include the series name if useful)
labels: formatLabels(field.labels!), formattedLabels: formatLabels(field.labels!),
label: 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