mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix home section resume error
This commit is contained in:
parent
6e0ad2ed1b
commit
942c1e01dc
1 changed files with 5 additions and 3 deletions
|
@ -131,9 +131,11 @@ export function resume(elem, options) {
|
|||
const elems = elem.querySelectorAll('.itemsContainer');
|
||||
const promises = [];
|
||||
|
||||
for (let i = 0, length = elems.length; i < length; i++) {
|
||||
promises.push(elems[i].resume(options));
|
||||
}
|
||||
Array.prototype.forEach.call(elems, section => {
|
||||
if (section.resume) {
|
||||
promises.push(section.resume(options));
|
||||
}
|
||||
});
|
||||
|
||||
return Promise.all(promises);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue