Component disappears when moving it within a part and it is duplicated when moving it from a part to body until you reload
Expected behaviour
Moving components should be reflected without the need to reload the page.
Current behaviour
When moving a component from body inside a part, the move action is not reflected immediately. It seems like the component is disappeared and after you reload the page, it will show in the part (e.g. "section test" component in screencast).
Screencast_from_20.9.23_05_27_22.MD_CEST
While moving a component from part to body, it shows as duplicated until I reload (e.g. "pubmed help" chapter in the screenshot).
Steps to reproduce
- Go to a book with parts
- Move a chapter inside a part and check that this chapter seems to be disappeared at all from the UI.
- Reload the page and check again the target part. The component should be there.
- Move a chapter that's inside a part to the body and check that this chapter is shown both inside the part and at the body.
- Reload the page and check again inside the part. The chapter is not there anymore but it is showing in the body in the position you moved it to in Step 4.
Environment
Possible solution
QA Steps
[To be completed by Coko once dev is done]