mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelQueryRunner: Fix loading state (#79690)
This commit is contained in:
parent
315dd75767
commit
82af0d6230
@ -342,6 +342,7 @@ export class PanelQueryRunner {
|
||||
if (last != null) {
|
||||
let sameSeries = compareArrayValues(last.series ?? [], next.series ?? [], (a, b) => a === b);
|
||||
let sameAnnotations = compareArrayValues(last.annotations ?? [], next.annotations ?? [], (a, b) => a === b);
|
||||
let sameState = last.state === next.state;
|
||||
|
||||
if (sameSeries) {
|
||||
next.series = last.series;
|
||||
@ -351,7 +352,7 @@ export class PanelQueryRunner {
|
||||
next.annotations = last.annotations;
|
||||
}
|
||||
|
||||
if (sameSeries && sameAnnotations) {
|
||||
if (sameSeries && sameAnnotations && sameState) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user