chore: guard around tracks access
This commit is contained in:
parent
9aabe19b8f
commit
06ca81b903
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ module.exports = async function () {
|
||||||
})
|
})
|
||||||
.then((data) => data.json())
|
.then((data) => data.json())
|
||||||
.catch()
|
.catch()
|
||||||
res = [...res, ...tracks['data']]
|
res = tracks['data'].length ? [...res, ...tracks['data']] : [...res]
|
||||||
CURRENT_PAGE++
|
CURRENT_PAGE++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue