mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +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]);
|
||||
|
||||
const itemCount = playlistSongs.data?.totalRecordCount ? filterSortedSongs.length : undefined;
|
||||
const itemCount =
|
||||
typeof playlistSongs.data?.totalRecordCount === 'number'
|
||||
? filterSortedSongs.length
|
||||
: undefined;
|
||||
|
||||
const handlePlay = (play: Play) => {
|
||||
handlePlayQueueAdd?.({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue