mirror of
https://github.com/leinelissen/jellyfin-audio-player.git
synced 2026-09-03 05:10:01 +03:00
Fix play album hook
This commit is contained in:
@@ -17,7 +17,7 @@ export default function usePlayAlbum() {
|
||||
const trackIds = album?.Tracks;
|
||||
|
||||
// GUARD: Check that the album actually has tracks
|
||||
if (!album || !trackIds?.length || !tracks.length) {
|
||||
if (!album || !trackIds?.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user