mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
changed var to let in last files (#13087)
This commit is contained in:
committed by
Torkel Ödegaard
parent
ceadced6f0
commit
b494a29e02
@@ -21,7 +21,7 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
|
||||
const files = evt.target.files; // FileList object
|
||||
const readerOnload = function() {
|
||||
return function(e) {
|
||||
var dash;
|
||||
let dash;
|
||||
try {
|
||||
dash = JSON.parse(e.target.result);
|
||||
} catch (err) {
|
||||
@@ -36,7 +36,7 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
|
||||
};
|
||||
};
|
||||
|
||||
for (var i = 0, f; (f = files[i]); i++) {
|
||||
for (let i = 0, f; (f = files[i]); i++) {
|
||||
const reader = new FileReader();
|
||||
reader.onload = readerOnload();
|
||||
reader.readAsText(f);
|
||||
|
||||
Reference in New Issue
Block a user