panels: fix loading panels with non-array targets

This commit is contained in:
Alexander Zobnin
2019-03-15 10:14:56 +03:00
parent 4bbd6ab79c
commit e3b3b35dca
@@ -126,7 +126,8 @@ export class PanelModel {
ensureQueryIds() {
if (this.targets) {
for (const query of this.targets) {
for (let i = 0; i < this.targets.length; i++) {
const query = this.targets[i];
if (!query.refId) {
query.refId = this.getNextQueryLetter();
}