Skip to content

Commit

Permalink
useEntityBlockEditor: Update 'content' type check (#59058)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
  • Loading branch information
3 people authored Feb 15, 2024
1 parent f8ea61f commit 7fa04f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-data/src/entity-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function useEntityBlockEditor( kind, name, { id: _id } = {} ) {
return editedBlocks;
}

if ( ! content || typeof content === 'function' ) {
if ( ! content || typeof content !== 'string' ) {
return EMPTY_ARRAY;
}

Expand Down

1 comment on commit 7fa04f3

@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 7fa04f3.
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/7916932753
📝 Reported issues:

Please sign in to comment.