fix: sort artist level concerts
This commit is contained in:
parent
70c8138064
commit
571f362d14
3 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ const processArtists = (artists) => {
|
|||
totalPlays: album['total_plays'],
|
||||
art: album.art ? `/${album['art']}` : ''
|
||||
})).sort((a, b) => a['release_year'] - b['release_year']),
|
||||
concerts: artist['concerts']?.[0]?.id ? artist['concerts'] : null
|
||||
concerts: artist['concerts']?.[0]?.id ? artist['concerts'].sort((a, b) => new Date(b['date']) - new Date(a['date'])) : null
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue