Skip to content

Commit

Permalink
Adjust the second instance of __unstableFetch
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Aug 27, 2021
1 parent 652d7e8 commit 4049925
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core-data/src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,7 @@ export const saveEntityRecord = (
method: recordId ? 'PUT' : 'POST',
data: edits,
};
if ( __unstableFetch ) {
updatedRecord = await __unstableFetch( options );
} else {
updatedRecord = await triggerFetch( options );
}
updatedRecord = await __unstableFetch( options );
await dispatch.receiveEntityRecords(
kind,
name,
Expand Down

0 comments on commit 4049925

Please sign in to comment.