fix(api): refetch manuscript after creating editor team
Fixes:
- create a new manuscript
- go to
/decision
page - add an editor
- remove the editor
- add another editor in the same role
- get duplicate key error
This is caused by the AssignEditors
component not recognising that an editor team was already created, as it uses the manuscript.teams
as the source of truth, which does not contain the newly created team.
This MR refetches the manuscript on createTeam
.