Merge pull request #16014 from alexanderzobnin/fix-15993

Panels: fix loading panels with non-array targets
This commit is contained in:
Torkel Ödegaard
2019-03-18 22:34:24 +01:00
committed by GitHub
2 changed files with 14 additions and 3 deletions

View File

@@ -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();