mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix initDashboard bug (#53722)
Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
This commit is contained in:
parent
4a5afe4fb6
commit
c8fc840865
@ -160,6 +160,10 @@ function describeInitScenario(description: string, scenarioFn: ScenarioFn) {
|
|||||||
title: 'Redshift and Azure',
|
title: 'Redshift and Azure',
|
||||||
type: 'stat',
|
type: 'stat',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 9,
|
||||||
|
type: 'text',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
title: 'Collapsed Panel',
|
title: 'Collapsed Panel',
|
||||||
type: 'row',
|
type: 'row',
|
||||||
|
@ -115,7 +115,7 @@ const getQueriesByDatasource = (
|
|||||||
panels.forEach((panel) => {
|
panels.forEach((panel) => {
|
||||||
if (panel.panels) {
|
if (panel.panels) {
|
||||||
getQueriesByDatasource(panel.panels, queries);
|
getQueriesByDatasource(panel.panels, queries);
|
||||||
} else {
|
} else if (panel.targets) {
|
||||||
panel.targets.forEach((target) => {
|
panel.targets.forEach((target) => {
|
||||||
if (target.datasource?.type) {
|
if (target.datasource?.type) {
|
||||||
if (queries[target.datasource.type]) {
|
if (queries[target.datasource.type]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user