Skip to content

Commit

Permalink
Don't show "playing/paused" icon on the first song when calling "Play…
Browse files Browse the repository at this point in the history
… Now"
  • Loading branch information
deluan committed Jul 6, 2021
1 parent 24d4c81 commit b34d77f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ui/src/reducers/playerReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,8 @@ const reduceSetVolume = (state, { data: { volume } }) => {
}

const reduceSyncQueue = (state, { data: { audioInfo, audioLists } }) => {
const current = audioLists.length > 0 ? audioInfo : {}
const savedPlayIndex = audioLists.findIndex(
(item) => item.uuid === current.uuid
)

return {
...state,
current,
savedPlayIndex,
queue: audioLists,
clear: false,
playIndex: undefined,
Expand Down

0 comments on commit b34d77f

Please sign in to comment.