mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Don't abort when executing empty expression
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
9f5bc08f02
commit
08e474dd48
|
@ -210,6 +210,10 @@ class Panel extends Component {
|
|||
}
|
||||
|
||||
executeQuery = ()=> {
|
||||
if (this.state.expr === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.abortInFlightFetch) {
|
||||
this.abortInFlightFetch();
|
||||
this.abortInFlightFetch = null;
|
||||
|
@ -219,10 +223,6 @@ class Panel extends Component {
|
|||
this.abortInFlightFetch = () => abortController.abort();
|
||||
this.setState({loading: true});
|
||||
|
||||
if (this.state.expr === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
let endTime = this.getEndTime() / 1000;
|
||||
let startTime = endTime - this.state.range;
|
||||
let resolution = this.state.resolution || Math.max(Math.floor(this.state.range / 250), 1);
|
||||
|
|
Loading…
Reference in a new issue