Skip to content

Commit

Permalink
Avoid setting default in selector
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Sep 4, 2024
1 parent cdf6e0b commit 133b30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/private-selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,5 +546,5 @@ export function isZoomOutMode( state ) {
}

export function getSectionRootClientId( state ) {
return state.settings[ sectionRootClientIdKey ] ?? null;
return state.settings?.[ sectionRootClientIdKey ];
}

0 comments on commit 133b30f

Please sign in to comment.