fix(netlify-cms-core): fix collection entries loaded check (#1881)

This commit is contained in:
Bartholomew 2018-12-19 21:29:54 +01:00 committed by Shawn Erquhart
parent cedcbf89a5
commit b374ffe18b

View File

@ -370,7 +370,7 @@ function mapStateToProps(state, ownProps) {
const displayUrl = config.get('display_url');
const hasWorkflow = config.get('publish_mode') === EDITORIAL_WORKFLOW;
const isModification = entryDraft.getIn(['entry', 'isModification']);
const collectionEntriesLoaded = !!entries.getIn(['entities', collectionName]);
const collectionEntriesLoaded = !!entries.getIn(['pages', collectionName]);
const unpublishedEntry = selectUnpublishedEntry(state, collectionName, slug);
const currentStatus = unpublishedEntry && unpublishedEntry.getIn(['metaData', 'status']);
return {