Skip to content

Commit 7fa04f3

Browse files
useEntityBlockEditor: Update 'content' type check (#59058)
Co-authored-by: Mamaduka <[email protected]> Co-authored-by: youknowriad <[email protected]>
1 parent f8ea61f commit 7fa04f3

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)