diff --git a/packages/components-faraday/src/components/Dashboard/DashboardPage.js b/packages/components-faraday/src/components/Dashboard/DashboardPage.js index 1e59c3c6684e7284307aeb139d0d7ee0f780971f..00a2fc968658af3bf5384f74a7f91a209b95ec43 100644 --- a/packages/components-faraday/src/components/Dashboard/DashboardPage.js +++ b/packages/components-faraday/src/components/Dashboard/DashboardPage.js @@ -10,16 +10,11 @@ import { newestFirst, selectCurrentUser } from 'xpub-selectors' import { createDraftSubmission } from 'pubsweet-component-wizard/src/redux/conversion' import Dashboard from './Dashboard' -import { getHandlingEditors } from '../../redux/editors' import withFilters from './withFilters' +import { getHandlingEditors } from '../../redux/editors' export default compose( - ConnectPage(() => [ - actions.getCollections(), - actions.getTeams(), - actions.getUsers(), - getHandlingEditors(), - ]), + ConnectPage(() => [actions.getCollections()]), connect( state => { const { collections, conversion } = state @@ -50,6 +45,12 @@ export default compose( createDraftSubmission: () => dispatch(createDraftSubmission(history)), }), ), + ConnectPage( + ({ currentUser }) => + get(currentUser, 'admin') || get(currentUser, 'editorInChief') + ? [getHandlingEditors()] + : [], + ), withRouter, withJournal, withFilters({