diff --git a/packages/neos-ui/src/Containers/RightSideBar/Inspector/index.js b/packages/neos-ui/src/Containers/RightSideBar/Inspector/index.js index afbf2b13db..214d64380d 100644 --- a/packages/neos-ui/src/Containers/RightSideBar/Inspector/index.js +++ b/packages/neos-ui/src/Containers/RightSideBar/Inspector/index.js @@ -37,7 +37,7 @@ import style from './style.css'; const shouldShowUnappliedChangesOverlay = isDirty && !shouldPromptToHandleUnappliedChanges; const shouldShowSecondaryInspector = selectors.UI.Inspector.shouldShowSecondaryInspector(state); const focusedNode = selectors.CR.Nodes.focusedSelector(state); - const parentNode = selectors.CR.Nodes.nodeByContextPath(state)(focusedNode.parent); + const parentNode = focusedNode ? selectors.CR.Nodes.nodeByContextPath(state)(focusedNode.parent) : null; return { focusedNode,