Skip to content
Snippets Groups Projects
Commit e0045d67 authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

change status when submitting manuscript

parent da8762ac
No related branches found
No related tags found
1 merge request!6Agree/Decline to work on a manuscript
...@@ -45,6 +45,14 @@ const submitManuscript = ( ...@@ -45,6 +45,14 @@ const submitManuscript = (
...values, ...values,
}), }),
) )
.then(() =>
dispatch(
actions.updateCollection({
id: project.id,
status: 'submitted',
}),
),
)
.then(() => { .then(() => {
history.push(redirectPath, { project: project.id, version: version.id }) history.push(redirectPath, { project: project.id, version: version.id })
}) })
......
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