Skip to content

Commit 703000b

Browse files
committed
useEntityBlockEditor: Update 'content' type check
1 parent a988b90 commit 703000b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core-data/src/entity-provider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export function useEntityBlockEditor( kind, name, { id: _id } = {} ) {
183183
return editedBlocks;
184184
}
185185

186-
if ( ! content || typeof content === 'function' ) {
186+
if ( ! content || typeof content !== 'string' ) {
187187
return EMPTY_ARRAY;
188188
}
189189

0 commit comments

Comments
 (0)