Merge pull request #161 from netlify/fix-entry-creation

Fix cms hanging when going to new entry page
This commit is contained in:
Mathias Biilmann 2016-11-15 17:27:24 -08:00 committed by GitHub
commit 0338e5c9c2

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);