Skip to content

Commit

Permalink
Make last argument of getEntityRecord optional
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 12, 2024
1 parent 4a2acbe commit cda6087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-data/src/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const getCurrentUser =
* fields, fields must always include the ID.
*/
export const getEntityRecord =
( kind, name, key = '', query ) =>
( kind, name, key = '', query = undefined ) =>
async ( { select, dispatch, registry, resolveSelect } ) => {
const configs = await resolveSelect.getEntitiesConfig( kind );
const entityConfig = configs.find(
Expand Down

0 comments on commit cda6087

Please sign in to comment.