mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
refatoring: minor changes to PR #13149
This commit is contained in:
@@ -37,12 +37,14 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
|
||||
};
|
||||
|
||||
let i = 0;
|
||||
let f = files[i];
|
||||
for (i; f; i++) {
|
||||
let file = files[i];
|
||||
|
||||
while (file) {
|
||||
const reader = new FileReader();
|
||||
reader.onload = readerOnload();
|
||||
reader.readAsText(f);
|
||||
f = files[i];
|
||||
reader.readAsText(file);
|
||||
i += 1;
|
||||
file = files[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user