mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: Trim whitespace from trace id query (#49008)
This commit is contained in:
@@ -252,7 +252,7 @@ export class TempoDatasource extends DataSourceWithBackend<TempoQuery, TempoJson
|
||||
options: DataQueryRequest<TempoQuery>,
|
||||
targets: TempoQuery[]
|
||||
): Observable<DataQueryResponse> {
|
||||
const validTargets = targets.filter((t) => t.query);
|
||||
const validTargets = targets.filter((t) => t.query).map((t) => ({ ...t, query: t.query.trim() }));
|
||||
if (!validTargets.length) {
|
||||
return EMPTY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user