mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
SingleStat: fix wrong call to getDataLinkUIModel (#32721)
This commit is contained in:
parent
ad5b838130
commit
fbabed203f
@ -23,6 +23,7 @@ import {
|
||||
locationUtil,
|
||||
getFieldDisplayName,
|
||||
getColorForTheme,
|
||||
InterpolateFunction,
|
||||
} from '@grafana/data';
|
||||
|
||||
import { convertOldAngularValueMapping } from '@grafana/ui';
|
||||
@ -621,7 +622,9 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
elem.toggleClass('pointer', panel.links.length > 0);
|
||||
|
||||
if (panel.links.length > 0) {
|
||||
linkInfo = linkSrv.getDataLinkUIModel(panel.links[0], data.scopedVars, {});
|
||||
const replace: InterpolateFunction = (value, vars) =>
|
||||
templateSrv.replace(value, { ...vars, ...data.scopedVars });
|
||||
linkInfo = linkSrv.getDataLinkUIModel(panel.links[0], replace, {});
|
||||
} else {
|
||||
linkInfo = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user