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
This commit is contained in:
Oscar Kilhed
2024-04-26 17:12:47 +02:00
committed by GitHub
parent 7783b16e47
commit c3cde17b33

View File

@@ -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;
}