mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix hidden scheduled task progress updates causing errors
This commit is contained in:
parent
9a24c2fbd1
commit
edbf5962f8
1 changed files with 5 additions and 2 deletions
|
@ -132,8 +132,11 @@ function updateTaskButton(elem, state) {
|
|||
export default function(view) {
|
||||
function updateTasks(tasks) {
|
||||
for (const task of tasks) {
|
||||
view.querySelector('#taskProgress' + task.Id).innerHTML = getTaskProgressHtml(task);
|
||||
updateTaskButton(view.querySelector('#btnTask' + task.Id), task.State);
|
||||
const taskProgress = view.querySelector(`#taskProgress${task.Id}`);
|
||||
if (taskProgress) taskProgress.innerHTML = getTaskProgressHtml(task);
|
||||
|
||||
const taskButton = view.querySelector(`#btnTask${task.Id}`);
|
||||
if (taskButton) updateTaskButton(taskButton, task.State);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue