Merge pull request #5925 from thornbill/home-resume-error

This commit is contained in:
Bill Thornton 2024-08-18 10:56:54 -04:00 committed by GitHub
commit 8f0fd26582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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