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.
What happens?
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.
Context
Funkwhale version(s) affected: 1.1.2+git.ea4be336 (https://open.audio/)
Firefox on DragonflyBSD current.