From 3b037ed8ea08e1239a75c6f9dbeb17c893ff8959 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 17 Oct 2024 10:34:55 +0100 Subject: [PATCH] Fix selector --- packages/block-editor/src/store/private-selectors.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/store/private-selectors.js b/packages/block-editor/src/store/private-selectors.js index c3228980310656..28e0c2bd47b0ca 100644 --- a/packages/block-editor/src/store/private-selectors.js +++ b/packages/block-editor/src/store/private-selectors.js @@ -17,6 +17,7 @@ import { getClientIdsWithDescendants, isNavigationMode, getBlockRootClientId, + __unstableGetEditorMode, } from './selectors'; import { checkAllowListRecursive, @@ -579,7 +580,7 @@ export const getBlockStyles = createSelector( * @return {boolean} Is zoom out mode enabled. */ export function isZoomOutMode( state ) { - return state.editorMode === 'zoom-out'; + return __unstableGetEditorMode( state ) === 'zoom-out'; } /**