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 17, 2023
1 parent 4a22a8f commit 0345d15
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 0345d15

Please sign in to comment.