Fix initDashboard bug (#53722)

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
This commit is contained in:
Torkel Ödegaard
2022-08-16 09:24:04 +02:00
committed by GitHub
parent 4a5afe4fb6
commit c8fc840865
2 changed files with 5 additions and 1 deletions

View File

@@ -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]) {