feat: refactoring
This commit is contained in:
@@ -239,6 +239,7 @@ export function selectQueueItems(state: QueueSliceRoot) {
|
||||
return state.queue.items
|
||||
}
|
||||
|
||||
// TODO: toggle shuffle should rebuild the shuffle order
|
||||
export function selectQueueOrder(state: QueueSliceRoot): number[] {
|
||||
const q = state.queue
|
||||
if (!q.shuffle) return q.items.map((_, i) => i)
|
||||
|
||||
Reference in New Issue
Block a user