mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-14 15:27:47 -08:00
Never submit empty queries.
This commit is contained in:
parent
5a07e8a7c6
commit
c5e507cd9c
|
@ -275,6 +275,9 @@ Prometheus.Graph.prototype.decreaseEnd = function() {
|
||||||
|
|
||||||
Prometheus.Graph.prototype.submitQuery = function() {
|
Prometheus.Graph.prototype.submitQuery = function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
if (!self.expr.val()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
self.spinner.show();
|
self.spinner.show();
|
||||||
self.evalStats.empty();
|
self.evalStats.empty();
|
||||||
|
|
Loading…
Reference in a new issue