Skip to content

Commit

Permalink
BUGFIX: Cannot read properties of null (reading 'parent')
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign authored Sep 15, 2023
1 parent 32f8dc5 commit 524dc6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 524dc6a

Please sign in to comment.