diff --git a/packages/component-wizard/src/components/WizardFormStep.js b/packages/component-wizard/src/components/WizardFormStep.js index b50d4d3e408bc85af1d024e385aa8aa350fa8486..2a9f4dd9f336ef606b4386c6fca340642bc3ed6e 100644 --- a/packages/component-wizard/src/components/WizardFormStep.js +++ b/packages/component-wizard/src/components/WizardFormStep.js @@ -45,14 +45,6 @@ const submitManuscript = ( ...values, }), ) - .then(() => - dispatch( - actions.updateCollection({ - id: project.id, - status: 'submitted', - }), - ), - ) .then(() => { history.push(redirectPath, { project: project.id, version: version.id }) }) diff --git a/packages/components-faraday/src/components/Dashboard/AssignHEModal.js b/packages/components-faraday/src/components/Dashboard/AssignHEModal.js index 592a672532c297eee54a7935536514435bc2f17f..37ab14727ea3048cc87c3deb39f45cc9e083fe65 100644 --- a/packages/components-faraday/src/components/Dashboard/AssignHEModal.js +++ b/packages/components-faraday/src/components/Dashboard/AssignHEModal.js @@ -35,22 +35,16 @@ class AssignHEModal extends React.Component { showModal, hideModal, setModalError, - updateCollection, getCollections, } = this.props assignHandlingEditor(email, collectionId).then( () => { - updateCollection({ - id: collectionId, - status: 'he-invited', - }).then(() => { - getCollections() - hideModal() - showModal({ - type: 'confirmation', - title: 'Assignation Sent', - cancelText: 'OK', - }) + getCollections() + hideModal() + showModal({ + type: 'confirmation', + title: 'Assignation Sent', + cancelText: 'OK', }) }, e => { diff --git a/packages/components-faraday/src/components/Dashboard/EditorInChiefActions.js b/packages/components-faraday/src/components/Dashboard/EditorInChiefActions.js index d9bdde64a9104b35ce9a48960e48659312764f32..74d43be7981a96341f71e2527dffd463a76bf39c 100644 --- a/packages/components-faraday/src/components/Dashboard/EditorInChiefActions.js +++ b/packages/components-faraday/src/components/Dashboard/EditorInChiefActions.js @@ -65,7 +65,6 @@ export default compose( connect(null, { revokeHandlingEditor, assignHandlingEditor, - updateCollection: actions.updateCollection, getCollections: actions.getCollections, }), withTheme, @@ -85,7 +84,6 @@ export default compose( getHandlingEditor, hideModal, setModalError, - updateCollection, getCollections, }) => actionType => { const editor = get(project, 'handlingEditor') @@ -112,16 +110,11 @@ export default compose( confirmText: 'Revoke invite', onConfirm: () => revokeHandlingEditor(invitation.id, project.id).then(() => { - updateCollection({ - id: project.id, - status: 'submitted', - }).then(() => { - getCollections() - hideModal() - showModal({ - type: 'success', - title: 'Handling Editor Assignation Revoked', - }) + getCollections() + hideModal() + showModal({ + type: 'success', + title: 'Handling Editor Assignation Revoked', }) }, handleError(setModalError)), } diff --git a/packages/components-faraday/src/components/Dashboard/HandlingEditorActions.js b/packages/components-faraday/src/components/Dashboard/HandlingEditorActions.js index da92ff4ec736ef3969ebad6ace56bebebc97666a..64885e96a2fdef4bc167dde69f4eff2783f8cdad 100644 --- a/packages/components-faraday/src/components/Dashboard/HandlingEditorActions.js +++ b/packages/components-faraday/src/components/Dashboard/HandlingEditorActions.js @@ -55,7 +55,6 @@ const HandlingEditorActions = ({ showHEModal }) => ( export default compose( connect(null, { getCollections: actions.getCollections, - updateCollection: actions.updateCollection, }), withModal({ modalKey: 'he-action', @@ -68,7 +67,6 @@ export default compose( hideModal, project, getCollections, - updateCollection, setModalError, }) => modalType => { const invitation = project.invitations.find( @@ -80,13 +78,8 @@ export default compose( subtitle: `Clicking "Agree" will assign you as Handling Editor for this Manuscript.`, onConfirm: () => { handlingEditorDecision(invitation.id, project.id, true).then(() => { - updateCollection({ - id: project.id, - status: 'under-review', - }).then(() => { - getCollections() - hideModal() - }) + getCollections() + hideModal() }, handleError(setModalError)) }, } @@ -97,13 +90,8 @@ export default compose( onConfirm: reason => () => { handlingEditorDecision(invitation.id, project.id, false, reason).then( () => { - updateCollection({ - id: project.id, - status: 'submitted', - }).then(() => { - getCollections() - hideModal() - }) + getCollections() + hideModal() }, handleError(setModalError), )