DataLinks: Fixed interpolation of repeated variables used in data links (#26147)

This commit is contained in:
Torkel Ödegaard
2020-07-08 11:04:23 +02:00
committed by GitHub
parent 292c985b76
commit 89b56782c6

View File

@@ -54,8 +54,10 @@ export const getFieldLinksSupplier = (value: FieldDisplay): LinkModelSupplier<Fi
return undefined;
}
return {
getLinks: (_scopedVars?: any) => {
const scopedVars: DataLinkScopedVars = {};
getLinks: (existingScopedVars?: any) => {
const scopedVars: DataLinkScopedVars = {
...(existingScopedVars ?? {}),
};
if (value.view) {
const { dataFrame } = value.view;