diff --git a/packages/ra-core/src/controller/useRecordSelection.ts b/packages/ra-core/src/controller/useRecordSelection.ts index ceaf03bc729..bdb12d3ed29 100644 --- a/packages/ra-core/src/controller/useRecordSelection.ts +++ b/packages/ra-core/src/controller/useRecordSelection.ts @@ -12,7 +12,7 @@ const defaultRecords = []; * * @returns {Object} Destructure as [selectedIds, { select, toggle, clearSelection }]. */ -const useSelectItems = ( +const useRecordSelection = ( resource: string ): [ Identifier[], @@ -51,4 +51,4 @@ const useSelectItems = ( return [selectedIds, selectionModifiers]; }; -export default useSelectItems; +export default useRecordSelection;