From 03e26f35f0fedb285e8a8626a389bef5e2ea7a1d 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 764fe61431a683..658aacd331debc 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 ), } );