From 71d72cc973a0ac192ee901356359080668047cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 8 Oct 2020 18:38:20 +0200 Subject: [PATCH] Snapshots: Fixed issue loading graphs in snapshots (#28111) --- public/app/features/panel/metrics_panel_ctrl.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/app/features/panel/metrics_panel_ctrl.ts b/public/app/features/panel/metrics_panel_ctrl.ts index 2ac73d778b8..4bcf3bdf465 100644 --- a/public/app/features/panel/metrics_panel_ctrl.ts +++ b/public/app/features/panel/metrics_panel_ctrl.ts @@ -81,6 +81,12 @@ class MetricsPanelCtrl extends PanelCtrl { data = data.data; } + this.panelData = { + state: LoadingState.Done, + series: data, + timeRange: this.range, + }; + // Defer panel rendering till the next digest cycle. // For some reason snapshot panels don't init at this time, so this helps to avoid rendering issues. return this.$timeout(() => {