Skip to content

Commit

Permalink
Fix useRecordSelection name tobe equal to its file name
Browse files Browse the repository at this point in the history
  • Loading branch information
asvarcas committed Mar 9, 2021
1 parent ae95dad commit d906005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-core/src/controller/useRecordSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const defaultRecords = [];
*
* @returns {Object} Destructure as [selectedIds, { select, toggle, clearSelection }].
*/
const useSelectItems = (
const useRecordSelection = (
resource: string
): [
Identifier[],
Expand Down Expand Up @@ -51,4 +51,4 @@ const useSelectItems = (
return [selectedIds, selectionModifiers];
};

export default useSelectItems;
export default useRecordSelection;

0 comments on commit d906005

Please sign in to comment.