Error in decision page for group manager, when the reviewer declines the invitation
Expected behaviour
A group manager can invite users to review a manuscript from the Manuscripts>Control>Team. The user declines the invitation and it should be listed at team page of declined request.
Current behaviour
The reviewer gets the email and declined it. When the group manager refreshes the page it sees an blank page with an error that something went wrong.
Steps to reproduce
- Login as group manager
- Submit a manuscript
- Go to Manuscripts>Control
- Invite a reviewer
- Reviewer checks email and clicks Decline which will require login
- Go back to /decision page for the group manager and refresh the page while at Team tab.
- A blank page that something went wrong will appear.
The test site link: https://kotahi.kotahidev.cloud68.co/kotahi/versions/9a6106d4-bc90-452f-b227-58ff3ba4a4d3/decision
Manuscript with title: Test of decline invite.
Environment
Firefox, Brave and Chrome browsers. Tested both in site linked above and in the local deployment.