From 3d29372e65952739c4562f5e068520273d1d491b Mon Sep 17 00:00:00 2001
From: George Mamadashvili <georgemamadashvili@gmail.com>
Date: Thu, 15 Feb 2024 17:48:39 +0400
Subject: [PATCH] useEntityBlockEditor: Update 'content' type check (#59058)

Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
---
 packages/core-data/src/entity-provider.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/core-data/src/entity-provider.js b/packages/core-data/src/entity-provider.js
index b5c39534e837b6..51830f622a026d 100644
--- a/packages/core-data/src/entity-provider.js
+++ b/packages/core-data/src/entity-provider.js
@@ -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;
 		}