Skip to content

Commit

Permalink
Update packages/edit-site/src/components/sidebar-edit-mode/template-p…
Browse files Browse the repository at this point in the history
…anel/replace-template-button.js

Co-authored-by: Andrei Draganescu <me@andreidraganescu.info>
  • Loading branch information
scruffian and draganescu authored Sep 27, 2023
1 parent e52b906 commit b5ed84a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ),
} );
Expand Down

0 comments on commit b5ed84a

Please sign in to comment.