Skip to content
Snippets Groups Projects
Commit c2850330 authored by Audrey Hamelers's avatar Audrey Hamelers
Browse files

#1208

parent c0c730e3
No related branches found
No related tags found
1 merge request!389Dev
......@@ -46,7 +46,7 @@ const MyManuscripts = ({ currentUser, errors, history }) => (
)
}
if (!data) {
createBrowserHistory({ forceRefresh: true }).push('/login')
createBrowserHistory({ forceRefresh: true }).push('')
return null
}
// get the total number of manuscripts to decide whether the toggles are required
......@@ -72,7 +72,7 @@ const MyManuscripts = ({ currentUser, errors, history }) => (
const totalProcess = countByStatus
.filter(s =>
states
.slice(done)
.slice(0, done)
.filter(s => !highlight.includes(s))
.includes(s.type),
)
......@@ -89,7 +89,7 @@ const MyManuscripts = ({ currentUser, errors, history }) => (
(showStates === 'completed' && states.slice(done).join(',')) ||
(showStates === 'processing' &&
states
.slice(done)
.slice(0, done)
.filter(s => !highlight.includes(s))
.join(',')) ||
highlight.join(',')
......
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