Skip to content

Commit

Permalink
await parse when restoring from backup
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Aug 14, 2023
1 parent 75362cc commit 15c9a1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ function useAutosaveNotice() {
actions: [
{
label: __( 'Restore the backup' ),
onClick() {
async onClick() {
const {
content: editsContent,
...editsWithoutContent
} = edits;
editPost( editsWithoutContent );
resetEditorBlocks( parse( edits.content ) );
resetEditorBlocks( await parse( edits.content ) );
removeNotice( id );
},
},
Expand Down

0 comments on commit 15c9a1a

Please sign in to comment.