LayoutRestorer: Adjust panels are unchanged check (#103679)

adjust panels are unchanged check
pull/103715/head
Sergej-Vlasov 1 month ago committed by GitHub
parent 6df04f3949
commit 53d5a57a2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      public/app/features/dashboard-scene/scene/layouts-shared/LayoutRestorer.ts

@ -28,6 +28,10 @@ export class LayoutRestorer {
* Ideally we should check if persisted state is the same but not possible anymore with current serialization code that requires all panels be connected to a DashboardScene
*/
function panelsAreUnchanged(a: VizPanel[], b: VizPanel[]) {
if (a.length < b.length) {
return false;
}
for (let i = 0; i < a.length; i++) {
const ap = a[i];
const bp = b[i];

Loading…
Cancel
Save