initialize editorialWorkflow state after config loaded & parsed

This commit is contained in:
Cássio Zen
2016-09-13 04:29:30 -03:00
parent 165c758bb9
commit 911e3f7077
3 changed files with 12 additions and 19 deletions

View File

@ -1,7 +1,7 @@
import React, { PropTypes } from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { OrderedMap } from 'immutable';
import { init, loadUnpublishedEntries } from '../../actions/editorialWorkflow';
import { loadUnpublishedEntries } from '../../actions/editorialWorkflow';
import { selectUnpublishedEntries } from '../../reducers';
import { EDITORIAL_WORKFLOW, status } from '../../constants/publishModes';
import UnpublishedListing from '../../components/UnpublishedListing';
@ -13,7 +13,6 @@ export default function CollectionPageHOC(CollectionPage) {
componentDidMount() {
const { dispatch, isEditorialWorkflow } = this.props;
if (isEditorialWorkflow) {
dispatch(init());
dispatch(loadUnpublishedEntries());
}
super.componentDidMount();