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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;