fix: more conditional access checks

This commit is contained in:
Cory Dransfeldt 2023-10-10 15:07:26 -07:00
parent cd3b605f3a
commit bafab2d6b9

View file

@ -41,7 +41,7 @@ module.exports = async function () {
})
.then((data) => data.json())
.catch()
res = tracks['data'].length ? [...res, ...tracks['data']] : [...res]
res = tracks['data']?.length ? [...res, ...tracks['data']] : [...res]
CURRENT_PAGE++
}