Fix cms hanging when going to new entry page

This commit is contained in:
Mathias Biilmann Christensen 2016-11-15 17:21:33 -08:00
parent 8623a514af
commit 790619083d

View File

@ -40,7 +40,7 @@ class EntryPage extends React.Component {
};
componentDidMount() {
const { entry, newEntry, collection, slug, loadEntry } = this.props;
const { entry, newEntry, collection, slug, loadEntry, createEmptyDraft } = this.props;
this.props.openSidebar();
if (newEntry) {
createEmptyDraft(collection);