mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panel Header: Add CancelQuery option to panel header (#64796)
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
This commit is contained in:
@@ -317,8 +317,11 @@ export class PanelQueryRunner {
|
||||
|
||||
this.subscription.unsubscribe();
|
||||
|
||||
// If we have an old result with loading state, send it with done state
|
||||
if (this.lastResult && this.lastResult.state === LoadingState.Loading) {
|
||||
// If we have an old result with loading or streaming state, send it with done state
|
||||
if (
|
||||
this.lastResult &&
|
||||
(this.lastResult.state === LoadingState.Loading || this.lastResult.state === LoadingState.Streaming)
|
||||
) {
|
||||
this.subject.next({
|
||||
...this.lastResult,
|
||||
state: LoadingState.Done,
|
||||
|
||||
Reference in New Issue
Block a user