diff --git a/src/renderer/features/playlists/routes/playlist-detail-song-list-route.tsx b/src/renderer/features/playlists/routes/playlist-detail-song-list-route.tsx index e7d98602..5bb8d267 100644 --- a/src/renderer/features/playlists/routes/playlist-detail-song-list-route.tsx +++ b/src/renderer/features/playlists/routes/playlist-detail-song-list-route.tsx @@ -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?.({