From b5ed84a8e709d1c9ed66089410859dff0a275081 Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Wed, 27 Sep 2023 21:08:41 +0100 Subject: [PATCH] Update packages/edit-site/src/components/sidebar-edit-mode/template-panel/replace-template-button.js Co-authored-by: Andrei Draganescu --- .../sidebar-edit-mode/template-panel/replace-template-button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/sidebar-edit-mode/template-panel/replace-template-button.js b/packages/edit-site/src/components/sidebar-edit-mode/template-panel/replace-template-button.js index 764fe61431a68..658aacd331deb 100644 --- a/packages/edit-site/src/components/sidebar-edit-mode/template-panel/replace-template-button.js +++ b/packages/edit-site/src/components/sidebar-edit-mode/template-panel/replace-template-button.js @@ -35,7 +35,7 @@ export default function ReplaceTemplateButton( { const onTemplateSelect = async ( selectedTemplate ) => { onClose(); // Close the template suggestions modal first. onClick(); - editEntityRecord( 'postType', postType, postId, { + await editEntityRecord( 'postType', postType, postId, { blocks: selectedTemplate.blocks, content: serialize( selectedTemplate.blocks ), } );