Skip to content

Commit

Permalink
Fix album tile playback (#8637)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliptype committed May 29, 2024
1 parent e3f7785 commit 831c0e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/common/src/store/queue/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createSelector } from 'reselect'
import { UID } from '../../models'
import { Uid } from '../../utils/uid'
import { cacheUsersSelectors, cacheTracksSelectors } from '../cache'
import { playerSelectors } from '../player'
import { PlayerBehavior, playerSelectors } from '../player'
import { CommonState } from '../reducers'

const { getUid: getPlayerUid, getTrackId: getPlayerTrackId } = playerSelectors
Expand Down Expand Up @@ -36,8 +36,9 @@ export const getId = (state: CommonState) =>
isQueueIndexValid(state) ? state.queue.order[state.queue.index].id : null
export const getPlayerBehavior = (state: CommonState) =>
isQueueIndexValid(state)
? state.queue.order[state.queue.index].playerBehavior
: null
? state.queue.order[state.queue.index].playerBehavior ??
PlayerBehavior.FULL_OR_PREVIEW
: PlayerBehavior.FULL_OR_PREVIEW
export const getCollectible = (state: CommonState) => {
if (!isQueueIndexValid(state)) return null
return state.queue.order[state.queue.index].collectible ?? null
Expand Down

0 comments on commit 831c0e1

Please sign in to comment.