[v11.0.x] Dasbhoard scenes: Don't return null when uids are not matching for new dashboards (#87001)

Dasbhoard scenes: Don't return null when uids are not matching for new dashboards (#86998)

Don't return null when uids not matching for new dashboards

(cherry picked from commit c3cde17b33)

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-04-26 18:48:53 +01:00
committed by GitHub
co-authored by Oscar Kilhed
parent 6a79482d18
commit 345a40815b
@@ -54,7 +54,7 @@ function DashboardPageProxy(props: DashboardPageProxyProps) {
return null;
}
if (dashboard?.value?.dashboard?.uid !== props.match.params.uid) {
if (dashboard?.value?.dashboard?.uid !== props.match.params.uid && dashboard.value?.meta?.isNew !== true) {
return null;
}