mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
bugfix: handle playlist with no tracks
This commit is contained in:
parent
7817059a9e
commit
fccbf83c12
1 changed files with 4 additions and 1 deletions
|
|
@ -186,7 +186,10 @@ const PlaylistDetailSongListRoute = () => {
|
||||||
}
|
}
|
||||||
}, [playlistSongs.data?.items, page?.table.id, playlistId]);
|
}, [playlistSongs.data?.items, page?.table.id, playlistId]);
|
||||||
|
|
||||||
const itemCount = playlistSongs.data?.totalRecordCount ? filterSortedSongs.length : undefined;
|
const itemCount =
|
||||||
|
typeof playlistSongs.data?.totalRecordCount === 'number'
|
||||||
|
? filterSortedSongs.length
|
||||||
|
: undefined;
|
||||||
|
|
||||||
const handlePlay = (play: Play) => {
|
const handlePlay = (play: Play) => {
|
||||||
handlePlayQueueAdd?.({
|
handlePlayQueueAdd?.({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue