From 2337198a0c2af2d7123b35fdd6c3e2b2b3e23585 Mon Sep 17 00:00:00 2001 From: Ella <4710635+ellatrix@users.noreply.github.com> Date: Mon, 5 Feb 2024 10:31:18 +0200 Subject: [PATCH] Block editor: settings may be undefined (#58658) Co-authored-by: ellatrix Co-authored-by: youknowriad --- packages/block-editor/src/components/provider/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/provider/index.js b/packages/block-editor/src/components/provider/index.js index b140a2af8c095e..42e114ce20aa32 100644 --- a/packages/block-editor/src/components/provider/index.js +++ b/packages/block-editor/src/components/provider/index.js @@ -46,7 +46,7 @@ export const ExperimentalBlockEditorProvider = withRegistryProvider( return ( - { ! settings.__unstableIsPreviewMode && ( + { ! settings?.__unstableIsPreviewMode && ( ) } { children }