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

(cherry picked from commit 89b56782c6)
This commit is contained in:
Torkel Ödegaard
2020-07-13 14:41:21 +02:00
committed by Andrej Ocenas
parent c14ac88b8d
commit 5f539230da
@@ -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;