From 524dc6a8b424eb5f519dadb0709d328553131f0b Mon Sep 17 00:00:00 2001 From: Marc Henry Schultz <85400359+mhsdesign@users.noreply.github.com> Date: Fri, 15 Sep 2023 09:41:02 +0200 Subject: [PATCH] BUGFIX: `Cannot read properties of null (reading 'parent')` --- packages/neos-ui/src/Containers/RightSideBar/Inspector/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,