From 12771e49fc13b4b6e7e073100c4f7d0f91d915a5 Mon Sep 17 00:00:00 2001 From: Oscar Kilhed Date: Mon, 22 Apr 2024 15:02:40 +0200 Subject: [PATCH] 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 --- 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 ;