fix(netlify-cms-core): fix collection entries loaded check (#1881)
This commit is contained in:
parent
cedcbf89a5
commit
b374ffe18b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user