[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 12771e49fc)
Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
This commit is contained in:
co-authored by
Oscar Kilhed
parent
831c717689
commit
493a17ed37
@@ -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 <DashboardScenePage {...props} />;
|
||||
|
||||
Reference in New Issue
Block a user