Merge pull request #161 from netlify/fix-entry-creation
Fix cms hanging when going to new entry page
This commit is contained in:
commit
0338e5c9c2
@ -40,7 +40,7 @@ class EntryPage extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const { entry, newEntry, collection, slug, loadEntry } = this.props;
|
const { entry, newEntry, collection, slug, loadEntry, createEmptyDraft } = this.props;
|
||||||
this.props.openSidebar();
|
this.props.openSidebar();
|
||||||
if (newEntry) {
|
if (newEntry) {
|
||||||
createEmptyDraft(collection);
|
createEmptyDraft(collection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user