Fix cms hanging when going to new entry page
This commit is contained in:
parent
8623a514af
commit
790619083d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user