diff --git a/web/static/js/graph.js b/web/static/js/graph.js index 55649ca56f..385d78730f 100644 --- a/web/static/js/graph.js +++ b/web/static/js/graph.js @@ -275,6 +275,9 @@ Prometheus.Graph.prototype.decreaseEnd = function() { Prometheus.Graph.prototype.submitQuery = function() { var self = this; + if (!self.expr.val()) { + return + } self.spinner.show(); self.evalStats.empty();