Skip to content

Commit

Permalink
Merge pull request #9972 from marmelab/fix-reference-field-type
Browse files Browse the repository at this point in the history
[TypeScript] Fix ReferenceField Props type is confusing
  • Loading branch information
djhi authored Jul 4, 2024
2 parents 5424eaa + d9ffd9e commit 5d6b19b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ra-ui-materialui/src/field/ReferenceField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ export const ReferenceField = <
export interface ReferenceFieldProps<
RecordType extends Record<string, any> = Record<string, any>,
ReferenceRecordType extends RaRecord = RaRecord,
> extends Omit<FieldProps<RecordType>, 'source'>,
Required<Pick<FieldProps<RecordType>, 'source'>> {
> extends FieldProps<RecordType> {
children?: ReactNode;
queryOptions?: Partial<
UseQueryOptions<ReferenceRecordType[], Error> & {
Expand Down

0 comments on commit 5d6b19b

Please sign in to comment.