fix(ui): favourite button disabled after queue ends - #5560

This commit is contained in:
Piyush 2026-07-05 02:42:50 +05:30 committed by Piyush Sharma
parent e329783112
commit a33a42780f

View File

@ -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,
)