Update team membership error
@draciti and @karenyook experience an issue I have been unable to replicate. When they use the team manager to set the editors, SO and curator for an article, the server doesn't return and the modal doesn't close. The error on the server is:
{"error":{"message":"Cannot read property 'title' of undefined","locations":[{"line":2,"column":3}],"path":["updateManuscriptTeamMembership"],"extensions":{"code":"INTERNAL_SERVER_ERROR"}},"level":"error","message":"Cannot read property 'title' of undefined","timestamp":"2020-10-31T23:24:41.678Z"}
The error happens here: https://gitlab.coko.foundation/micropublication/micropublication/blob/master/server/services/notify/emailMiddleware.js#L137
Can you think of a reason the version would be undefined?