mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
fix(ui): favourite button disabled after queue ends - #5560
This commit is contained in:
parent
e329783112
commit
a33a42780f
@ -182,7 +182,7 @@ const reduceSyncQueue = (state, { data: { audioInfo, audioLists } }) => {
|
||||
}
|
||||
|
||||
const reduceCurrent = (state, { data }) => {
|
||||
const current = data.ended ? {} : data
|
||||
const current = data.ended ? { ...data, paused: true } : data
|
||||
const savedPlayIndex = state.queue.findIndex(
|
||||
(item) => item.uuid === current.uuid,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user