Version dropdown goes wrong if versions are not monotonic
Summary
If design versions ids inside issue are not monotonic, versions dropdown will incorrectly !
In this video for some reason I do not have design with id 2 (no special actions were taken, I believe this is due to failed upload or whatever)
See video
Pay attention to version id in query parameter :) At this point Version 4 of design is treated as "Latest version" by dropdown (I assume because it's id = 5 and length of entire versions is 5)
Steps to reproduce
- Upload multiple design versions
- Make design version upload fail (I assume corrupted file might work)
- Check version switcher