fix: valid mbid + no genre
This commit is contained in:
parent
0abc374531
commit
6630d84750
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export default async () => {
|
|||
type: 'json',
|
||||
}).catch()
|
||||
const genreData = await genreRes.json()
|
||||
genre = genreData.genres.sort((a, b) => b.count - a.count)[0]['name']
|
||||
genre = genreData.genres.sort((a, b) => b.count - a.count)[0]?.['name'] || ''
|
||||
}
|
||||
|
||||
return Response.json({
|
||||
|
|
Reference in a new issue