Skip to content

Commit

Permalink
Block editor: settings may be undefined (#58658)
Browse files Browse the repository at this point in the history
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people authored Feb 5, 2024
1 parent d2d6c71 commit 2337198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const ExperimentalBlockEditorProvider = withRegistryProvider(

return (
<SlotFillProvider passthrough>
{ ! settings.__unstableIsPreviewMode && (
{ ! settings?.__unstableIsPreviewMode && (
<KeyboardShortcuts.Register />
) }
<BlockRefsProvider>{ children }</BlockRefsProvider>
Expand Down

1 comment on commit 2337198

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 2337198.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7781610929
📝 Reported issues:

Please sign in to comment.