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 committed Oct 3, 2023
1 parent 3521d12 commit 03e26f3
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 03e26f3

Please sign in to comment.