mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 19:01:40 +00:00
Handle song detail add
This commit is contained in:
parent
debdb92dcf
commit
b71c3c7c53
1 changed files with 5 additions and 3 deletions
|
|
@ -97,9 +97,11 @@ export const useHandlePlayQueueAdd = () => {
|
||||||
} else if (itemType === LibraryItem.ALBUM_ARTIST) {
|
} else if (itemType === LibraryItem.ALBUM_ARTIST) {
|
||||||
songList = await getAlbumArtistSongsById({ id, query, queryClient, server });
|
songList = await getAlbumArtistSongsById({ id, query, queryClient, server });
|
||||||
} else if (itemType === LibraryItem.SONG) {
|
} else if (itemType === LibraryItem.SONG) {
|
||||||
songList = await getSongsByQuery({ query, queryClient, server });
|
if (id?.length === 1) {
|
||||||
} else {
|
songList = await getSongById({ id: id?.[0], queryClient, server });
|
||||||
songList = await getSongById({ id: id?.[0], queryClient, server });
|
} else {
|
||||||
|
songList = await getSongsByQuery({ query, queryClient, server });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clearTimeout(timeoutIds.current[fetchId] as ReturnType<typeof setTimeout>);
|
clearTimeout(timeoutIds.current[fetchId] as ReturnType<typeof setTimeout>);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue