Web UI: deleting the last track on the queue causes the next-last track to be played
Steps to reproduce
- At https://open.audio/, add some tracks to the playing queue.
- Click the "X of Y" button on the bottom-right to display the queue.
- Scroll to the end of the queue, and click the "X" at the right end of the last track.
The last track is deleted, and the second-last track starts playing.
What is expected?
The last track is deleted, but there is no change to what is currently playing.
Firefox on DragonflyBSD current.