mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
b674cad09e
commit
a1c0feab7d
@ -294,7 +294,6 @@ export class LokiDatasource
|
|||||||
runQuery(fixedRequest: DataQueryRequest<LokiQuery> & { targets: LokiQuery[] }) {
|
runQuery(fixedRequest: DataQueryRequest<LokiQuery> & { targets: LokiQuery[] }) {
|
||||||
const startTime = new Date();
|
const startTime = new Date();
|
||||||
return super.query(fixedRequest).pipe(
|
return super.query(fixedRequest).pipe(
|
||||||
// in case of an empty query, this is somehow run twice. `share()` is no workaround here as the observable is generated from `of()`.
|
|
||||||
map((response) =>
|
map((response) =>
|
||||||
transformBackendResult(response, fixedRequest.targets, this.instanceSettings.jsonData.derivedFields ?? [])
|
transformBackendResult(response, fixedRequest.targets, this.instanceSettings.jsonData.derivedFields ?? [])
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user