From b348e5c9dd1491eb46ab5ec1fb528ae2a2e71a51 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Thu, 15 Feb 2024 17:48:39 +0400 Subject: [PATCH] useEntityBlockEditor: Update 'content' type check (#59058) Co-authored-by: Mamaduka Co-authored-by: youknowriad --- 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 b5c39534e837b..51830f622a026 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; }