1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix prefer for-of errors

This commit is contained in:
Bill Thornton 2023-05-04 11:27:15 -04:00
parent ef719c45f4
commit 1b03cd79eb
11 changed files with 26 additions and 47 deletions

View file

@ -133,8 +133,7 @@ function updateTaskButton(elem, state) {
export default function(view) {
function updateTasks(tasks) {
for (let i = 0; i < tasks.length; i++) {
const task = tasks[i];
for (const task of tasks) {
view.querySelector('#taskProgress' + task.Id).innerHTML = getTaskProgressHtml(task);
updateTaskButton(view.querySelector('#btnTask' + task.Id), task.State);
}