From 133b30f2d92058fb3863790645c2a4fcf082bc31 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Wed, 4 Sep 2024 09:33:47 +0100 Subject: [PATCH] Avoid setting default in selector --- packages/block-editor/src/store/private-selectors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/store/private-selectors.js b/packages/block-editor/src/store/private-selectors.js index 752c2fe7b4c2e..7e323cee6581a 100644 --- a/packages/block-editor/src/store/private-selectors.js +++ b/packages/block-editor/src/store/private-selectors.js @@ -546,5 +546,5 @@ export function isZoomOutMode( state ) { } export function getSectionRootClientId( state ) { - return state.settings[ sectionRootClientIdKey ] ?? null; + return state.settings?.[ sectionRootClientIdKey ]; }