Preview tab displays previous version when the new version is created
Expected behaviour
Some books have multiple published versions. The user can flip between the version to see the Preview related to the version (assuming it has generated successfully).
If the preview doesn't exist for a version, the tab should be blank with text: Submit files for conversion to generate the preview
Current behaviour
The Preview tab (V2) shows the preview from V1.
Steps to reproduce
See example here
- Publish a book component
- Select "New Published Version"
- See incorrect preview displayed.
Environment
Mac/ Chrome Version 92.0.4515.159