Fixes typescript issues (#27565)

This commit is contained in:
Torkel Ödegaard
2020-09-14 10:02:25 +02:00
committed by GitHub
parent b37e132cec
commit 7f6e979056
5 changed files with 5 additions and 10 deletions
@@ -283,7 +283,7 @@ export class LinkSrv implements LinkService {
/**
* Returns LinkModel which is basically a DataLink with all values interpolated through the templateSrv.
*/
getDataLinkUIModel = <T>(link: DataLink, scopedVars: ScopedVars, origin: T): LinkModel<T> => {
getDataLinkUIModel = <T>(link: DataLink, scopedVars: ScopedVars | undefined, origin: T): LinkModel<T> => {
const params: KeyValue = {};
const timeRangeUrl = urlUtil.toUrlParams(this.timeSrv.timeRangeForUrl());