Skip to content

Commit

Permalink
Move REQUEST_POST_UPDATE_START to before preSave async filter
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsilverstein committed Jul 16, 2024
1 parent ff7d6b4 commit 4ead1ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ export const savePost =
),
content,
};

dispatch( { type: 'REQUEST_POST_UPDATE_START', options } );
let error;
try {
edits = await applyFilters(
Expand All @@ -206,7 +208,6 @@ export const savePost =
error = err;
}

dispatch( { type: 'REQUEST_POST_UPDATE_START', options } );
if ( ! error ) {
error = await registry
.dispatch( coreStore )
Expand Down

0 comments on commit 4ead1ff

Please sign in to comment.