Skip to content

Commit

Permalink
fix track queue undefined issue
Browse files Browse the repository at this point in the history
  • Loading branch information
IkeHunter committed Jan 2, 2025
1 parent 5e74981 commit 78eb79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jukebox/track-queue/track-queue.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class TrackQueueService {
if (queued && queued.length === 0) {
const playerState = await this.getPlayerState(jukeboxId)

queued = playerState.default_next_tracks.map((track) => ({
queued = playerState?.default_next_tracks.map((track) => ({
...track,
queue_id: randomUUID(),
}))
Expand Down

0 comments on commit 78eb79a

Please sign in to comment.