From 5f539230da4b9b90f1d7ccd343cfeb38ab663bc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 8 Jul 2020 11:04:23 +0200 Subject: [PATCH] DataLinks: Fixed interpolation of repeated variables used in data links (#26147) (cherry picked from commit 89b56782c61fd9ee86d47032093086b30bda0a70) --- public/app/features/panel/panellinks/linkSuppliers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app/features/panel/panellinks/linkSuppliers.ts b/public/app/features/panel/panellinks/linkSuppliers.ts index 4b0da5d5882..7da9fe379e8 100644 --- a/public/app/features/panel/panellinks/linkSuppliers.ts +++ b/public/app/features/panel/panellinks/linkSuppliers.ts @@ -54,8 +54,10 @@ export const getFieldLinksSupplier = (value: FieldDisplay): LinkModelSupplier { - const scopedVars: DataLinkScopedVars = {}; + getLinks: (existingScopedVars?: any) => { + const scopedVars: DataLinkScopedVars = { + ...(existingScopedVars ?? {}), + }; if (value.view) { const { dataFrame } = value.view;