mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Fix loading custom home dashboard (#25447)
* Dashboard: Fix loading custom home dashboard * Updated and added test
This commit is contained in:
@@ -69,7 +69,7 @@ async function fetchDashboard(
|
||||
const dashDTO: DashboardDTO = await backendSrv.get('/api/dashboards/home');
|
||||
|
||||
// if above all is cancelled it will return an array
|
||||
if (!dashDTO.meta) {
|
||||
if (Array.isArray(dashDTO)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user