fix: more conditional access checks
This commit is contained in:
parent
cd3b605f3a
commit
bafab2d6b9
1 changed files with 1 additions and 1 deletions
|
@ -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++
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue