mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Fix bug where no genres caused error
This commit is contained in:
@@ -537,7 +537,7 @@ export class Navidrome implements MusicService {
|
||||
.getJSON<GenGenresResponse>(credentials, "/rest/getGenres")
|
||||
.then((it) =>
|
||||
pipe(
|
||||
it.genres.genre,
|
||||
it.genres.genre || [],
|
||||
A.map((it) => it.__text),
|
||||
A.sort(ordString),
|
||||
A.map((it) => ({ id: it, name: it }))
|
||||
|
||||
Reference in New Issue
Block a user