Skip to content

Commit

Permalink
Remove await from two synchronous dispatch calls
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Sep 1, 2021
1 parent a597e89 commit 7a4eb7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-data/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const deleteEntityRecord = (
);

try {
await dispatch( {
dispatch( {
type: 'DELETE_ENTITY_RECORD_START',
kind,
name,
Expand All @@ -210,7 +210,7 @@ export const deleteEntityRecord = (
error = _error;
}

await dispatch( {
dispatch( {
type: 'DELETE_ENTITY_RECORD_FINISH',
kind,
name,
Expand Down

0 comments on commit 7a4eb7b

Please sign in to comment.