[v11.0.x] Scenes: Fix snapshot rendering (#87770)

Scenes: Fix snapshot rendering (#87769)

(cherry picked from commit 56766abcc8)

Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-05-13 22:32:59 +03:00
committed by GitHub
co-authored by Ezequiel Victorero
parent 0129c26d50
commit 016a26c6ad
@@ -73,7 +73,7 @@ export function DashboardScenePage({ match, route, queryParams, history }: Props
}
// Do not render anything when transitioning from one dashboard to another
if (dashboard.state.uid && dashboard.state.uid !== match.params.uid) {
if (match.params.type !== 'snapshot' && dashboard.state.uid && dashboard.state.uid !== match.params.uid) {
return null;
}