mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #16014 from alexanderzobnin/fix-15993
Panels: fix loading panels with non-array targets
This commit is contained in:
@@ -125,7 +125,7 @@ export class PanelModel {
|
||||
}
|
||||
|
||||
ensureQueryIds() {
|
||||
if (this.targets) {
|
||||
if (this.targets && _.isArray(this.targets)) {
|
||||
for (const query of this.targets) {
|
||||
if (!query.refId) {
|
||||
query.refId = this.getNextQueryLetter();
|
||||
|
||||
Reference in New Issue
Block a user