Skip to content
Snippets Groups Projects
Commit ac3bcc6e authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

Merge branch 'develop' into staging

parents 7bae14a9 10056be0
No related branches found
No related tags found
1 merge request!110Sprint 21 Features
......@@ -574,5 +574,27 @@ export default compose(
this.props.toggleEditorialComments()
}
},
componentDidUpdate(prevProps) {
const {
editorialRecommendations: prevEditorialRecommendations,
editorInChief: prevEditorInChief,
} = prevProps
const {
currentUser: { isEIC, isHEToManuscript },
collection: { status },
editorialRecommendations: currentEditorialRecommendations,
editorInChief: currentEditorInChief,
} = this.props
if (
prevEditorInChief === currentEditorInChief &&
prevEditorialRecommendations !== currentEditorialRecommendations &&
(isEIC || isHEToManuscript) &&
status === 'rejected'
) {
prevProps.toggleEditorialComments()
}
},
}),
)(ManuscriptLayout)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment