diff --git a/src/container/element-list/element-slot-container.tsx b/src/container/element-list/element-slot-container.tsx index 3739a321d..2a15484d4 100644 --- a/src/container/element-list/element-slot-container.tsx +++ b/src/container/element-list/element-slot-container.tsx @@ -14,8 +14,9 @@ export interface ElementSlotContainerProps { export class ElementSlotContainer extends React.Component { public render(): JSX.Element | null { const props = this.props as ElementSlotContainerProps & { store: ViewStore }; + const slot = props.content.getSlot(); - if (props.content.getSlot().getHidden()) { + if (!slot || slot.getHidden()) { return null; } @@ -25,7 +26,7 @@ export class ElementSlotContainer extends React.Component {props.content .getElements()