1
0
Fork 0
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:
Bill Thornton 2024-08-18 01:29:49 -04:00
parent 6e0ad2ed1b
commit 942c1e01dc

View file

@ -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);
}