Skip to content

fix(api): refetch manuscript after creating editor team

Vukile Langa requested to merge fix-duplicate-create-editor-team into main

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.

Merge request reports