Skip to content

Commit

Permalink
useEntityBlockEditor: Update 'content' type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Feb 15, 2024
1 parent a988b90 commit 703000b
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

0 comments on commit 703000b

Please sign in to comment.