mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
fix: only re-add song to queue if previously 1-star and queue < 500
- Check rating === 1 before re-adding to prevent adding songs that were never in the queue - Only re-add when queue has fewer than 500 items Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6082dcd250
commit
ac723fccd5
@ -76,7 +76,7 @@ export const useRating = (resource, record) => {
|
||||
audio.dispatchEvent(new Event('ended'))
|
||||
}
|
||||
}
|
||||
} else if (val !== 1 && !inQueue) {
|
||||
} else if (rating === 1 && val !== 1 && !inQueue && queue.length < 500) {
|
||||
dispatch(addTracks({ [trackId]: record }))
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user