Update refId for instant queries (#27954)

This commit is contained in:
Ivana Huckova 2020-10-01 12:19:24 +02:00 committed by GitHub
parent 2f5a60f561
commit 9546da3189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,15 @@ export class LokiDatasource extends DataSourceApi<LokiQuery, LokiOptions> {
}
return {
data: [lokiResultsToTableModel(response.data.data.result, responseListLength, target.refId, meta, true)],
data: [
lokiResultsToTableModel(
response.data.data.result,
responseListLength,
`${target.refId}_instant`,
meta,
true
),
],
key: `${target.refId}_instant`,
};
}),