From 493a17ed374c08d1343af1e85e18d13d5836d4d8 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 10:13:29 +0200 Subject: [PATCH] [v11.0.x] Dashboards: Check if dashboard.meta is undefined, if undefined handle redirect in dashboard scene. (#86685) Dashboards: Check if dashboard.meta is undefined, if undefined handle redirect in dashboard scene. (#86674) dashboard meta is not available if the dashboard response is a redirect (cherry picked from commit 12771e49fc13b4b6e7e073100c4f7d0f91d915a5) Co-authored-by: Oscar Kilhed --- public/app/features/dashboard/containers/DashboardPageProxy.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/containers/DashboardPageProxy.tsx b/public/app/features/dashboard/containers/DashboardPageProxy.tsx index b4182e9f7ca..c31f05630b4 100644 --- a/public/app/features/dashboard/containers/DashboardPageProxy.tsx +++ b/public/app/features/dashboard/containers/DashboardPageProxy.tsx @@ -60,7 +60,7 @@ function DashboardPageProxy(props: DashboardPageProxyProps) { if ( dashboard.value && - !(dashboard.value.meta.canEdit || dashboard.value.meta.canMakeEditable) && + !(dashboard.value.meta?.canEdit || dashboard.value.meta?.canMakeEditable) && isScenesSupportedRoute ) { return ;