From 82af0d62302ffc89190f373f9037c29a19bcd170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 19 Dec 2023 15:13:11 +0100 Subject: [PATCH] PanelQueryRunner: Fix loading state (#79690) --- public/app/features/query/state/PanelQueryRunner.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }