mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Avoid to request influxdb when query is hidden
This commit is contained in:
parent
eb54fbaef5
commit
6487814007
@ -134,6 +134,8 @@ export default class InfluxDatasource {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_seriesQuery(query) {
|
_seriesQuery(query) {
|
||||||
|
if (!query) { return this.$q.when({results: []}); }
|
||||||
|
|
||||||
return this._influxRequest('GET', '/query', {q: query, epoch: 'ms'});
|
return this._influxRequest('GET', '/query', {q: query, epoch: 'ms'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user