From 9bc3517617c591bce6395fb6918d964a43621550 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Sat, 10 Feb 2024 01:37:55 +0900 Subject: [PATCH] Snapshots: Fix issue where off-screen panels are not included in snapshots (#82135) --- public/app/features/dashboard/dashgrid/PanelStateWrapper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/dashgrid/PanelStateWrapper.tsx b/public/app/features/dashboard/dashgrid/PanelStateWrapper.tsx index 5e1823cd701..32cd4ba0fff 100644 --- a/public/app/features/dashboard/dashgrid/PanelStateWrapper.tsx +++ b/public/app/features/dashboard/dashgrid/PanelStateWrapper.tsx @@ -340,7 +340,7 @@ export class PanelStateWrapper extends PureComponent { onRefresh = () => { const { dashboard, panel, isInView, width } = this.props; - if (!isInView) { + if (!dashboard.snapshot && !isInView) { panel.refreshWhenInView = true; return; }