[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>
pull/86757/head
grafana-delivery-bot[bot] 1 year ago committed by GitHub
parent 831c717689
commit 493a17ed37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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 <DashboardScenePage {...props} />;

Loading…
Cancel
Save