PanelQueryRunner: Skip shallow diff when streaming (#79860)

This commit is contained in:
Todd Treece 2023-12-26 16:23:41 -05:00 committed by GitHub
parent a9f4ffab5d
commit e28bbd50d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,7 +339,7 @@ export class PanelQueryRunner {
const last = this.lastResult;
const next = skipPreProcess ? data : preProcessPanelData(data, last);
if (last != null) {
if (last != null && next.state !== LoadingState.Streaming) {
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;