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:
@@ -115,7 +115,7 @@ const getQueriesByDatasource = (
|
||||
panels.forEach((panel) => {
|
||||
if (panel.panels) {
|
||||
getQueriesByDatasource(panel.panels, queries);
|
||||
} else {
|
||||
} else if (panel.targets) {
|
||||
panel.targets.forEach((target) => {
|
||||
if (target.datasource?.type) {
|
||||
if (queries[target.datasource.type]) {
|
||||
|
||||
Reference in New Issue
Block a user