Commit 544abfd3 by Ryan McKinley Committed by GitHub

TestDataDatasource: add the query refId to each result

parent 80cca9c1
...@@ -61,12 +61,14 @@ export class TestDataDatasource implements DataSourceApi<TestDataQuery> { ...@@ -61,12 +61,14 @@ export class TestDataDatasource implements DataSourceApi<TestDataQuery> {
continue; continue;
} }
for (const table of results.tables || []) { for (const t of results.tables || []) {
data.push(table as TableData); const table = t as TableData;
table.refId = query.refId;
data.push(table);
} }
for (const series of results.series || []) { for (const series of results.series || []) {
data.push({ target: series.name, datapoints: series.points }); data.push({ target: series.name, datapoints: series.points, refId: query.refId });
} }
} }
......
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