File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
packages/ra-ui-materialui/src/list/SimpleList Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export const SimpleList = <RecordType extends RaRecord = any>(
8585 ref,
8686 rowSx,
8787 rowStyle,
88+ resource,
8889 ...rest
8990 } = props ;
9091 const { data, isPending, total } =
@@ -121,6 +122,7 @@ export const SimpleList = <RecordType extends RaRecord = any>(
121122 rowClick = { rowClick }
122123 rowSx = { rowSx }
123124 rowStyle = { rowStyle }
125+ resource = { resource }
124126 >
125127 < SimpleListItemContent
126128 leftAvatar = { leftAvatar }
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export const SimpleListItem = <RecordType extends RaRecord = any>(
2828 typeof linkType === 'function' || typeof rowClick === 'function' ;
2929 const pathForRecord = useGetPathForRecord ( {
3030 link : isFunctionLink ? false : linkType ?? rowClick ,
31+ resource,
3132 } ) ;
3233 const getPathForRecord = useGetPathForRecordCallback ( ) ;
3334 const handleClick = useEvent ( async ( ) => {
You can’t perform that action at this time.
0 commit comments