Skip to content

Commit

Permalink
Adjust args to select()
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Aug 25, 2021
1 parent 5728840 commit abc2cac
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 @@ -403,7 +403,7 @@ export const saveEntityRecord = (
}
}

dispatch( {
await dispatch( {
type: 'SAVE_ENTITY_RECORD_START',
kind,
name,
Expand All @@ -417,8 +417,6 @@ export const saveEntityRecord = (
recordId ? '/' + recordId : ''
}`;
const persistedRecord = select.getRawEntityRecord(
STORE_NAME,
'getRawEntityRecord',
kind,
name,
recordId
Expand All @@ -432,8 +430,6 @@ export const saveEntityRecord = (
const currentUser = select.getCurrentUser();
const currentUserId = currentUser ? currentUser.id : undefined;
const autosavePost = select.getAutosave(
STORE_NAME,
'getAutosave',
persistedRecord.type,
persistedRecord.id,
currentUserId
Expand Down

0 comments on commit abc2cac

Please sign in to comment.