mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
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
This commit is contained in:
parent
2247d6c415
commit
12771e49fc
@ -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…
Reference in New Issue
Block a user