Updated reducer for editorial workflow
This commit is contained in:
@ -57,7 +57,7 @@ class EntryPage extends React.Component {
|
||||
const {
|
||||
entry, entryDraft, boundGetMedia, collection, changeDraft, addMedia, removeMedia
|
||||
} = this.props;
|
||||
console.log(entry)
|
||||
|
||||
if (entryDraft == null || entryDraft.get('entry') == undefined || entry && entry.get('isFetching')) {
|
||||
return <div>Loading...</div>;
|
||||
}
|
||||
|
@ -35,8 +35,9 @@ export default function EntryPageHOC(EntryPage) {
|
||||
const returnObj = {};
|
||||
if (unpublishedEntry) {
|
||||
// Overwrite loadEntry to loadUnpublishedEntry
|
||||
const status = ownProps.params.status;
|
||||
returnObj.loadEntry = (collection, slug) => {
|
||||
dispatch(loadUnpublishedEntry(collection, slug));
|
||||
dispatch(loadUnpublishedEntry(collection, status, slug));
|
||||
};
|
||||
}
|
||||
return returnObj;
|
||||
|
Reference in New Issue
Block a user