fix get_my_favorite_tracks when user has no favorite tracks

This commit is contained in:
RemixDev 2021-12-23 17:10:05 +01:00
parent 07d94e1d0a
commit f6b5971edb

View file

@ -459,6 +459,7 @@ class GW{
const limit = options.limit || 25
const ids_raw = await this.get_user_favorite_ids(null, {limit})
const ids = ids_raw.data.map(x => x.SNG_ID)
if (!ids.length) return []
let data = await this.get_tracks(ids)
let result = []
data.forEach((track, i) => {