Chapters uploaded in an empty PDF book of type "Individual chapters" are not showed in Book Manager body tab until you reload the page or go to another tab
Expected behaviour
After a chapter is uploaded in an empty PDF book of type "Individual chapters", it should show in book manager after you close the modal.
Current behaviour
After uploading a chapter in an empty PDF book of type "Individual chapters" and closing the "Upload" modal, the uploaded chapter isn't shown in book manager until you reload the page, or click Frontmatter/Backmatter and come back to Body. Edit: This issue is applicable to all workflows.
Steps to reproduce
- Create a new PDF book of "Individual Chapters" type
- Upload a chapter or more and wait until the "Upload" modal is closed
- Check that in book manager you don't see any chapters but if you go to "Upload" modal you can see chapters as in status "Uploading File"
- Click the back button in nav bar to go back to the organisation
- From
Book and Collections
tab, click the book from step 1 - Check that still no chapters are shown and there is no chapter in the "Upload" modal.
- Reload the page or go to Frontmatter or Backmatter and come back to body
- Check that the chapters uploaded in Step 2 are shown
Repeat for XML and Word workflows too.
Environment
Firefox/117.0 Ubuntu 22.04.3; also tested on Chromium 116.0.5845.140; Brave Version 1.58.127 Chromium: 117.0.5938.88
Possible solution
QA Steps
[To be completed by Coko once dev is done]