fix preview pane not loading
This commit is contained in:
parent
c9b5fb446e
commit
b01be5d04c
@ -72,7 +72,11 @@ export default class PreviewPane extends React.Component {
|
||||
|
||||
render() {
|
||||
const { entry, collection } = this.props;
|
||||
if (!entry || !entry.get('data')) return;
|
||||
|
||||
if (!entry || !entry.get('data')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const component = registry.getPreviewTemplate(selectTemplateName(collection, entry.get('slug'))) || Preview;
|
||||
|
||||
this.inferFields();
|
||||
|
Loading…
x
Reference in New Issue
Block a user