From 5cdca9987c5cf952b611d0ac68181377a2726198 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Mon, 20 Mar 2023 12:10:35 +0400 Subject: [PATCH] BlockHTML: Use correct type when setting 'html' state onBlur (#49191) --- packages/block-editor/src/components/block-list/block-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-list/block-html.js b/packages/block-editor/src/components/block-list/block-html.js index ef38df983740a0..5d9e7bfeb7bf77 100644 --- a/packages/block-editor/src/components/block-list/block-html.js +++ b/packages/block-editor/src/components/block-list/block-html.js @@ -59,7 +59,7 @@ function BlockHTML( { clientId } ) { // Ensure the state is updated if we reset so it displays the default content. if ( ! html ) { - setHtml( { content } ); + setHtml( content ); } };