From 0c6b355eaebb605460ce4ba36a3077678e4dc5b6 Mon Sep 17 00:00:00 2001 From: Ella Date: Mon, 5 Feb 2024 09:24:59 +0200 Subject: [PATCH] Block editor: settings may be undefined --- 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 b140a2af8c095..42e114ce20aa3 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 }