diff --git a/public/app/features/query/state/PanelQueryRunner.ts b/public/app/features/query/state/PanelQueryRunner.ts index b13d54bc193..07ec0afb3e6 100644 --- a/public/app/features/query/state/PanelQueryRunner.ts +++ b/public/app/features/query/state/PanelQueryRunner.ts @@ -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; } }