panels: fix loading panels with non-array targets
This commit is contained in:
@@ -126,7 +126,8 @@ export class PanelModel {
|
|||||||
|
|
||||||
ensureQueryIds() {
|
ensureQueryIds() {
|
||||||
if (this.targets) {
|
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) {
|
if (!query.refId) {
|
||||||
query.refId = this.getNextQueryLetter();
|
query.refId = this.getNextQueryLetter();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user