added this:any to functions and changed functions to arrowfunctions

This commit is contained in:
Patrick O'Carroll
2018-08-30 10:49:18 +02:00
parent 80d6ef535d
commit a8547ae36e
18 changed files with 53 additions and 62 deletions

View File

@@ -140,15 +140,12 @@ export class DashboardMigrator {
}
// ensure query refIds
panelUpgrades.push(function(panel) {
_.each(
panel.targets,
function(target) {
if (!target.refId) {
target.refId = this.dashboard.getNextQueryLetter(panel);
}
}.bind(this)
);
panelUpgrades.push(panel => {
_.each(panel.targets, target => {
if (!target.refId) {
target.refId = this.dashboard.getNextQueryLetter(panel);
}
});
});
}