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

fix(details): show all versions in dropdown on manuscript details refresh

fix #HIN-758
parent 4fdc1094
No related branches found
No related tags found
1 merge request!13Sprint #14
......@@ -40,10 +40,7 @@ export default compose(
withState('editorInChief', 'setEiC', 'N/A'),
ConnectPage(({ match }) => [
actions.getCollection({ id: match.params.project }),
actions.getFragment(
{ id: match.params.project },
{ id: match.params.version },
),
actions.getFragments({ id: match.params.project }),
]),
connect(
(state, { match }) => ({
......
......@@ -74,9 +74,7 @@ export const parseSearchParams = url => {
export const parseVersionOptions = (fragments = []) =>
fragments.map(f => ({
value: f.id,
label: `Version ${f.version} - updated on ${moment(f.submitted).format(
'DD.MM.YYYY',
)}`,
label: `Version ${f.version}`,
}))
const alreadyAnswered = `You have already answered this invitation.`
......
......@@ -6,6 +6,7 @@ export { default as Steps } from './Steps/Steps'
export { default as Files } from './Files/Files'
export { default as AppBar } from './AppBar/AppBar'
export { default as AuthorList } from './AuthorList/AuthorList'
export { default as withVersion } from './Dashboard/withVersion.js'
export { default as SortableList } from './SortableList/SortableList'
export { Decision }
......
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