Commit 4fc984f7 by Torkel Ödegaard Committed by GitHub

TestData: Pass scoped vars when interpolating alias (#26088)

parent c711b792
...@@ -49,7 +49,7 @@ export class TestDataDataSource extends DataSourceApi<TestDataQuery> { ...@@ -49,7 +49,7 @@ export class TestDataDataSource extends DataSourceApi<TestDataQuery> {
intervalMs: options.intervalMs, intervalMs: options.intervalMs,
maxDataPoints: options.maxDataPoints, maxDataPoints: options.maxDataPoints,
datasourceId: this.id, datasourceId: this.id,
alias: templateSrv.replace(target.alias || ''), alias: templateSrv.replace(target.alias || '', options.scopedVars),
}); });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment