diff --git a/packages/component-manuscript/src/components/ManuscriptPage.js b/packages/component-manuscript/src/components/ManuscriptPage.js index 9289bd24896b42155ba1ec14286b0beeaefe2911..3fb1ac2723b45721be06ad679fd98edb4ceae33e 100644 --- a/packages/component-manuscript/src/components/ManuscriptPage.js +++ b/packages/component-manuscript/src/components/ManuscriptPage.js @@ -67,6 +67,7 @@ export default compose( getSignedUrl, clearCustomError, reviewerDecision, + getFragment: actions.getFragment, getCollection: actions.getCollection, updateVersion: actions.updateFragment, }, @@ -102,6 +103,7 @@ export default compose( replace, history, location, + getFragment, getCollection, reviewerDecision, setEditorInChief, @@ -114,11 +116,15 @@ export default compose( } const collectionId = match.params.project + const fragmentId = match.params.version const { agree, invitationId } = parseSearchParams(location.search) if (agree === 'true') { replace(location.pathname) - reviewerDecision(invitationId, collectionId, true) - .then(() => getCollection({ id: match.params.project })) + reviewerDecision(invitationId, collectionId, fragmentId, true) + .then(() => { + getCollection({ id: collectionId }) + getFragment({ id: collectionId }, { id: fragmentId }) + }) .catch(redirectToError(replace)) }