mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
bugfix: handle playlist with no tracks
This commit is contained in:
@@ -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?.({
|
||||
|
||||
Reference in New Issue
Block a user